Thursday, May 9, 2002 11:36 PM
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,