• Post Reply Bookmark Topic Watch Topic
  • New Topic

Singletons and thread

 
Farouk Mohamed1
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a basic question regarding threads. I know about thread and the allied concepts. I want to clarify this to get to understand things better
1. I understand every object has its one data are on the heap memory so where is the confusion and need for synchronzing threads for not affecting different objects dataarea?
2. What is a shared object?
3. Is concept of threads applicable to shared objects only?
4. Is singletons only a shared object?

Please answer I would like to clarify this as soon as possible
Farouk
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!