J
James
Does anybody know of any issues I should be aware of doing the follow:
In a highly multithreaded J2SE application (1000+ threads), having an
object where 500+ threads share a single instance of a class that
contains a method with a Thread.sleep(n) call in. n will have a
different value for each thread and will be stored in a ThreadLocal
attribute. At any one time approximately half the threads will be
sleeping and half active.
The code needs to run on Windows XP pro, Solaris 10 and Red Hat
(version to be decided).
Any advice warnings of gotchas will be greatly appreciated.
In a highly multithreaded J2SE application (1000+ threads), having an
object where 500+ threads share a single instance of a class that
contains a method with a Thread.sleep(n) call in. n will have a
different value for each thread and will be stored in a ThreadLocal
attribute. At any one time approximately half the threads will be
sleeping and half active.
The code needs to run on Windows XP pro, Solaris 10 and Red Hat
(version to be decided).
Any advice warnings of gotchas will be greatly appreciated.