• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is Thread Safe program?  RSS feed

 
Mano haran
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to know about thread safe programming?. how it will work?.





Thanks & Regards
Mano
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!