aspose file tools*
The moose likes Threads and Synchronization and the fly likes basic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "basic " Watch "basic " New topic
Author

basic

sudheer singampalli
Greenhorn

Joined: Nov 03, 2003
Posts: 4
I am new to Java.
plz tell me what a "thread-safe" program means.
Amol Takate
Greenhorn

Joined: Sep 20, 2003
Posts: 15
In simple words a thresd safe class or object means there is only one thread inside a object at a given point in a time.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Amol --
No, not really, that isn't what it means.
"Thread-safe" means quite the opposite, really: it means that multiple threads can access a single resource simultaneously without harm.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: basic