Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Singletons and thread  RSS feed

Farouk Mohamed1
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!