How many threads can be made in an Applet

Discussion in 'Java' started by Sanny, Jul 21, 2007.

  1. Sanny

    Sanny Guest

    I want to create as many Threads as possible but I want to know is
    there any limit to Maximum number of threads possible.

    Say a system has 512 MB RAM.

    Each thread is taking 10 KB

    Can I create 512000/10 = 51200 Threads on that Machine utilizing all
    RAM.

    And if the Threads are at Sleep() can I increase the number till the
    Active threads take up 512 MB RAM.

    And say a Computer is 2.0 Ghz

    My thread takes 10 CPU Cycles So I can make 2* 10^8 Threads Max.

    Is there any other restriction other than Memory and Ghz?

    Bye
    Sanny
     
    Sanny, Jul 21, 2007
    #1
    1. Advertisements

  2. Andrew Thompson, Jul 21, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. zorhel
    Replies:
    0
    Views:
    426
    zorhel
    Aug 24, 2004
  2. hyena
    Replies:
    2
    Views:
    2,378
    hyena
    Jul 1, 2004
  3. peelman

    How many threads is too many?

    peelman, Jan 13, 2005, in forum: Java
    Replies:
    12
    Views:
    1,149
    Esmond Pitt
    Jan 15, 2005
  4. troy makaro
    Replies:
    8
    Views:
    997
    Andrew Thompson
    Oct 8, 2005
  5. rbt
    Replies:
    1
    Views:
    603
  6. Replies:
    1
    Views:
    708
    Andrew Thompson
    Nov 19, 2007
  7. zorhel
    Replies:
    0
    Views:
    227
    zorhel
    Aug 24, 2004
  8. zorhel
    Replies:
    0
    Views:
    216
    zorhel
    Aug 24, 2004
Loading...