From owner-freebsd-questions Mon May 6 11:52:10 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA00619 for questions-outgoing; Mon, 6 May 1996 11:52:10 -0700 (PDT) Received: from pina1 (pina1.telecom.at [194.37.252.41]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA00513 for ; Mon, 6 May 1996 11:51:53 -0700 (PDT) Received: from async6.pinrt3.telecom.at (async6.pinrt3.telecom.at [194.118.0.103]) by pina1 (8.6.10/8.6.6) with SMTP id UAA52374 for ; Mon, 6 May 1996 20:50:21 +0200 Message-Id: <199605061850.UAA52374@pina1> Comments: Authenticated sender is From: "Franz Hollerer" To: freebsd-questions@FreeBSD.org Date: Mon, 6 May 1996 20:49:33 +0000 Subject: realtime processes Priority: normal X-mailer: Pegasus Mail for Windows (v2.01) Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hi, Please, can someone tell me if the following may work: rtprio(.....); /* realtime scheduling priority */ set_rts(); /* set rs232c rts output */ usleep(10000); /* sleep between 10 and 20ms */ outp_rs232(....); /* output a string to rs232 and wait */ /* until the whole string is */ /* send */ usleep(10000); /* sleep between 10 and 20ms */ res_rts(); /* reset rs232c rts output */ rtprio(.....); /* normal scheduling priority */ I have same questions referring to the above code fragment and I hobe that someone will answer this questions. 1) Can I trust the scheduler that my process will get the CPU between 10 and 20ms? 2) Output to RS232: I'm of the know of a system call which waits for output to drain. But normally this system call waits 100ms or more after the last character. I would need 10ms. Is this possible? Thanks, Franz EEG, Hard&Software Development Austria We have no kangaroos.