I have opened and configure a serial port in linux. Now i have to create two threads a WRITER THREAD which can write data into a buffer on serial port and a READER THREAD which can read data from that buffer on serial port. Can somebody tell me the concept how can i do this by using threads.