• Post Reply Bookmark Topic Watch Topic
  • New Topic

Monitor and Lock

 
thomas jacob
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
1)what is a monitor in thread terminology.
2) Is there a difference between locks and monitor.

Thanks
Jacob
 
Peter Lawrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> 1)what is a monitor in thread terminology.
A monitor is attached to each object and is used to implement the synchronized blocks.
> 2) Is there a difference between locks and monitor.
A monitor is a type of lock.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!