How to call blocking methods in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Blocking methods put Current thread on blocking position until method returns like ServerSocket accept() method which blocks until a client Socket con

Statistics

  • Total Hits - 27080

  • Total Votes - 98 votes

  • Vote Up - 42 votes

  • Vote Down - 56 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-02-12 04:25:19

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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements