How many threads are used to load an webpage in webview?

I implemented a custom version of cookiemanage to overcome the problem of cookies being stored retrived in the same place for webview (when assigning a custom cookiemanager to default cookiehandler before initializing webview ).
This custom class uses thread local to create a new store for each thread, so i could have varius webview instance not using the same cookiestore.Well, it doesn´t work because
webview apperantly creates about 20 threads for loading (login) a webpage.I´m guessing webview uses several threads to load an webpage, because in my custom implementation of cookiemanager each thread that request
CookieHandler.getdefault() get a new cookie store, i did this with threadlocal.
My question to the experts is ::
- Is my teory correct and weview creats several threads to load a page or i´m missing something where?
- Also having my problem is there an way i can restrict webview so it only creates one thread or at least only one thread that call cookiemanager.getDefault()?
Even not knowing the answers to the above , any details on webview inside working relating thread could be helpfull.
Many Thanks
André

To print all Threads;
class Equitus {
    public static void main(String[] arg) {
        new Equitus().run();
    public void run() {
        ThreadGroup tg = Thread.currentThread().getThreadGroup();
        for(ThreadGroup parent; (parent=tg.getParent()) != null; tg=parent) ;
        Thread[] threads;
        do {
            threads = new Thread[tg.activeCount()];
        } while (tg.enumerate(threads)!=threads.length);
        System.out.println(java.util.Arrays.toString(threads));
}

Similar Messages

  • Using powershell to find out how many people are using the on-prem SkyDrive

    Hi
    Is there a way of using powershell to find out how many people are using the on-prem SkyDrive?
    Thank you.

    Hi,
    According to your post, my understanding is that you wanted to use PowerShell to find out the users who use the on premise SkyDrive.
    As this is the forum for SharePoint Server, I recommend you post your question to the forum for PowerShell or SkyDrive.
    Windows PowerShell forum:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverpowershell
    SkyDrive forum:
    http://answers.microsoft.com/en-us/onedrive/forum/sdsignin?tab=Threads
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How can i see how many people are using my apple id without changing the password ?

    how can i see how many people are using my apple id without changing because some people have it

    I'm not sure that you can. Why have so many people got your password? So many in fact, that you don't know how many.
    You can see how many computers are authorised to play any songs you have purchased from the iTunes Store, but that isn't quite the same thing.
    Perhaps a better idea would be to change the password and not let anyone else know what it is. That would at least prevent anyone else from changing it and locking you out of your own account.

  • Need to find out how many users are using Siebel Application

    Hello all,
    I need to find out how many users are using Siebel Application?
    Is there a way I can find out?
    Thanks.
    yasun

    Hi,
    Read the following:
    http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor30.html
    http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor17.html
    For full information about server status and statistics red:
    http://docs.oracle.com/cd/B40099_02/books/SysDiag/SysDiagSysMonitor.html
    T.Abed

  • How many  threads are running?

    here's the code... i am trying to understand, at each point, how many threads are running:
    I understand that one thread belongs to the caller of the start()
    & at the same time there is another thread belonging to the instances of each thread (thread1, thread2, thread 3 etc.)
    1public class ThreadTester {
    2   public static void main( String args[] )
    3   {
    4      PrintThread thread1, thread2, thread3, thread4;
    5
    6      thread1 = new PrintThread( "thread1" );
    7      thread2 = new PrintThread( "thread2" );
    8      thread3 = new PrintThread( "thread3" );
    9      thread4 = new PrintThread( "thread4" );
    10
    11      System.err.println( "\nStarting threads" );
    12
    13      thread1.start();
    14      thread2.start();
    15      thread3.start();
    16      thread4.start();
    17
    18      System.err.println( "Threads started\n" );
    19   }
    }can you tell me if i am counting the number of threads in existance correctly...
    LINE#.....CALLER...START...TOTAL THREADS
    13..............1.........1.......2
    14..............1+1......1+1.....4
    15..............2+1......2+1.....6
    16..............3+1......3+1.....8
    so by the time line 16 executes i have a total of 8 threads,
    4 threads belonging to each caller plus
    4 threads created by start()
    or is it
    LINE#.....CALLER...START...TOTAL THREADS
    13..............1........1........2
    14..............1........1+1.....3
    15..............1........2+1.....4
    16..............1........3+1.....5
    after line 16 executes does the caller thread die, thus leaving only a total of 4 threads?
    there is only one thread belonging to the caller at line 13(plus the thread it creates).
    at the start of line 14, the previous callers thread is dead & now a new thread is created that belongs to the caller on line 14... etc.

    well, i realize at the end there would be 4 threads but im trying to get my head around this explanation in the book:
    "A program launches a threads executioin by calling the threads start method, which in turn call the run method. After start launches the thread, start returns to tis caller immediately. The caller then executes concurrently with the lauched thread." there fore if i have 2 concurrent processes, are there 2 threads running????
    now having said the above, my question was:
    for each line,
    how many threads are in existance at
    line13
    line14
    line15
    line16
    thanks.

  • User Profile Services:How get to know how many user are using my site.

    Hi,
    User Profile Services:How get to know how many user are using my site.
    Recently i have done migration sharepoint 2010 to sharepoint 2013,I did not migrate USer profile services because less user are using user profile here,but i need to know how many few uer are using my site for data store.
    Is any why we can get to know  user name who are using my site document library and other things.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Fallowing command shows only count of my site user ,I need to know how many upload data on my site
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

  • How do I verify how many devices are using my apple ID?

    I would like to know how many devices are using my apple ID?

    http://support.apple.com/kb/HT4627

  • How many computers are using my sync data

    I would like to know how many devices are utilizing my sync data.
    this seems like it should be in my sync management console online, but it is not.
    my paranoid brain sees a worst case scenario.. someone hacks my machine and somehow gets my sync key or was able to get a code generated to sync the data.
    is there a way to find out what devises are accessing my data ?
    thank you

    Unfortunately there's no easy way to do it, but there's a way to do it (and it's not obvious):
    Go to your Options/Preferences window and select the Sync tab.
    - From the "Manage account" drop-down, select "Reset Sync". (we are not going to Reset it...but is the way to go)
    - Select "Replace all other computers"
    - Press next and you will see the list of devices that are connected to the account.
    After that, close the window (unless you want to complete the process).
    I hope it helps.

  • How many classes are used in java versions?...

    sun microsystems have released many java version...
    how many build in classes are used java version 1.2 ,1.3 etc ...

    Arun02006 wrote:
    sun microsystems have released many java version...
    how many build in classes are used java version 1.2 ,1.3 etc ...No idea why you should want to know... Anyway, download them and look inside the zip file that holds the source codes.
    You can download older Java versions here: [http://java.sun.com/products/archive/]

  • Can i check how many people are using my apple id if so please help there is a new user with my apple id and i dont know who it is

    i have multiple people using my apple id which are my brothers and this new guy showed up and set up a new apple id with an ipad mini and i want to track this person down im afraid this will escelate to id theft and i want to check all users of my apple id

    Change the password and make sure those people can't access your email.

  • How many GB are used up when i purchase my Ipad

    i know its supossed to be 16GB but how much is used up from the iOS? and the built in apps?

    well my iPad 2 has the Capacity of 28.6 GB, I don't have much on it, and I have about 28.0GB free. So I would say less then .6 GB. But on other devices it may be larger or smaller.
    Some one asked the same question over here: http://www.ipadforums.net/ipad-os/49932-size-ios5.html
    and they got the answer:
    iOS5 9A334 iPhone 3GS - 684MB
    iOS5 9A334 iPhone 4 - 792MB
    iOS5 9A334 iPad 1 - 717MB
    iOS5 9A334 iPad 2 Wifi - 724MB
    iOS5 9A334 iPad 2 3G - 733MB

  • Is there a script that can count 'How many points are used in an entire document and/or how many are used by placed graphics'?

    My company is having issues with artwork being used in it's creative that contains extremely high points counts.  This causes issues downstream and we want to be proactive rather than reactive.

    It's not possible (to the best of my knowledge) to access the points in
    a PDF or EPS that are placed in InDesign.
    However, an InDesign script could open the files in Illustrator (if Illy
    can open those files), get it to count the points, and return the result
    to InDesign via BridgeTalk.

  • Is there an app that will show show how many characters one uses in an SMS?

    Apple are still not showing how many characters are used when one send an SMS, does anyone know why? and if there is an APP that will take care of this? Thanks

    I'm not sure if it will work for international texting, but I use AIM to text my friends all the time.
    Just put +1 followed by the phone number, including area code, without any punctuation, and it works for within the US. And when your contact replies, it goes directly to your AIM account.
    There is also a way to send texts using your email client, and the replies get sent directly to your email inbox. There is a service called teleflip that will do it. Again, I don't know how well it works internationally.
    The best thing to do would be to try both solutions out.

  • Can you see how many people is using your iTunes account?

    I want to know if anyone that I don't know is using my account. I wish I can see how many people is using it.

    The answer to "How many people are using my iTunes account?" should be --- one!
    If you suspect the answer is anything other than one, simply change your password and do not share it.

  • Can I use my airport to see how many devices are on my network?

    Can I use my airport to see how many devices are on my network?

    No, that info was removed from the airport utility at v6 toyland edition.
    The last real utility was 5.6.1 and although it is not actually supposed to work on AC model it does sometimes.
    But you can generally see what is on your network using the netstat command in the computer..
    Open the network utility and go to the netstat page and run scan.. this can take a few minutes.. and should show all the clients as well as the router/s. At least all the ones the computer can see.
    The network utility is under utilized as people seem to not know of it.
    There are iOS tools like this as well. Sorry but I don't remember the name/s.

Maybe you are looking for