title: how to read and write data on serial port using threads
body: <p>I am creating a serial port application in which i am creating two threads one is WRITER THREAD which will write data to serial port and a READER THREAD which will read data from serial port.I know how to open, configure,read and write data on serial port but how to do it using threads.</p>
  
  <p>I am using LINUX(ubuntu) and trying to open ttyS0 port programming in C.</p>