File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Thread effects on static methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Thread effects on static methods" Watch "Thread effects on static methods" New topic

Thread effects on static methods

Himanshu Kansal
Ranch Hand

Joined: Jul 05, 2009
Posts: 257

Could someone please give an example how static methods might be affected by multile Threads!

For instance, we have a class with a static method and a number of threads access it simultaneously. How would it affect the flow etc. ? (Examples in terms of analogies too would be helpful, bring greater understanding )


Experience and talent are independent of age
Nickolas Case
Ranch Hand

Joined: Apr 26, 2008
Posts: 98
Check out the tutorial on Concurrency
I agree. Here's the link:
subject: Thread effects on static methods
It's not a secret anymore!