*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 37907
    
  22
Have you been through the Java™ Tutorials?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  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
 
Similar Threads
db lock
static synchronized
Synchronized with example
Object Lock and a class level lock
can thread access the non-synchronized method in a class when other thread hold lock