I have written a program which reads from and writes into Serial Port.I have used a java thread to call one native method written in C code.This thread owns the port and waits for anything to read from the port and then it writes to the port and comes back in reading the port once again.

I am in need to access Serial Port concurrently from a linux machine which already owns the port.It actually does so by configuring either /etc/inittab or by configuring GRUB.

Can anybody give me an idea how I could be able to access serial port concurrently with another program already owns it?