Blocking I/O calls cause other threads to lock
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nagendra_Verma
Posted On:   Thursday, May 9, 2002 11:36 PM

Hi There,


I am developing a simple application in J2ME to read/write data from/to serial port. There is a saparate thread which is being in infinite loop for reading data from serial port, for the same i am using InputStream.read() method. But the problem is read() method blocks and causes other threads to lock. As and when any data comes to serial port, read() method returns and then only other threads can execute, and againg read() method called in thread and blocks and so on



Can you please suggest something to rectify this problem.


Thanks & Regards,


N. Verma

About | Sitemap | Contact