Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Threads and Synchronization and the fly likes How to make one waiting  thread for lock Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "How to make one waiting  thread for lock" Watch "How to make one waiting  thread for lock" New topic
Author

How to make one waiting thread for lock

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
Hi Friends, I am new to java. Can you explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38481
    
  23
Have you been through the Java™ Tutorials?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19679
    
  18

Moving to Threads and Synchronization.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
I know synchronization used for thread lock. I need clear explanation with one example.
Can you explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.
Santhosh Reddy
Greenhorn

Joined: Sep 25, 2006
Posts: 27
There are many tutorials to give you an explanations for this, this is not a place to learn multithreading infact a place to get resolved your issues while doing multithreading.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make one waiting thread for lock