aspose file tools
The moose likes Threads and Synchronization and the fly likes What is Thread Safe program? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "What is Thread Safe program?" Watch "What is Thread Safe program?" New topic
Author

What is Thread Safe program?

Mano haran
Greenhorn

Joined: Nov 30, 2006
Posts: 15
i want to know about thread safe programming?. how it will work?.





Thanks & Regards
Mano
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2300
Originally posted by Mano haran:
i want to know about thread safe programming?. how it will work?.


You have to write your programs in such a way that if shared resources are accessed by many threads , then it will not corrupt the state of the shared object.There should not be any deadlocks.But provision should be there for intra thread communication.


Rahul Bhattacharjee
LinkedIn - Blog
 
I agree. Here's the link: jrebel
 
subject: What is Thread Safe program?
 
Similar Threads
vetor thread safe?
ActionServlet Thread Safe
thread safe
threadsafe objects
question from the jweb+