Are terminal writes atomic?

Jim Stratton stratton at hpcupt1.HP.COM
Sun Sep 24 03:38:55 AEST 1989


I have two processes doing simultaneous output to the same terminal using the
write system call.  Assume A does a write of 10 bytes while B does a write
of 30 bytes.  Can I be assured that A's and B's output will not be inter-
mixed?  I understand that for pipes, they won't be mixed.  How about terminals?
--
Jim Stratton		hplabs.hp.com!hpcupt1!stratton



More information about the Comp.unix.questions mailing list