How to call blocking methods in Java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 11906
Total Votes: 139 votes
Category: JAVA/Core JAVA
Submitted on: 2012-02-12 04:25:19
Submitted By: Javin Paul
Description:Blocking methods put Current thread on blocking position until method returns like ServerSocket accept() method which blocks until a client Socket connects to Server. similarly InputStream read() blocks until last character is available in Stream, if not handled carefully blocking method can hung your program. this article gives some tips on how to call blocking method in java. More detail...