home *** CD-ROM | disk | FTP | other *** search
- From: uunet!sugar!peter (Peter da Silva)
-
-
- What sorts of approaches have people taken to doing real-time control under
- UNIX? How far apart are the different standards?
-
- [ There is no standard yet that I know of. IEEE 1003.4 is working on one,
- and there is also the /usr/group Technical Committee Working Group on Realtime.
- There will be some comments on them in Shane's next report, which we should
- see shortly. -mod ]
-
- [I have this fantasy of one day being able to write a program that does
- something like this under UNIX:
-
- comm=open("/dev/tty3a", 2);
- status=open("/dev/tty3b", 2);
-
- memory=open("/usr/scada/mempool", 2);
-
- mempool=map_file(memory, POOLSIZE);
-
- commbit = 1 << (commflag = async_read(comm, commbuf, 1));
- statbit = 1 << (statflag = async_read(status, statbuf, 1));
-
- bits = commbit|statbit;
- while(bits) {
- flags = async_wait(bits);
- if(flags&commbit) {
- bits &= ~commbit;
- do something with *commbuf;
- repost read if necessary;
- }
- if(flags&statbit) {
- bits &= ~statbit;
- do something with *statbuf;
- repost read if necessary;
- }
- }
- ]
- --
- Peter da Silva `-_-' peter@sugar.uu.net
- Have you hugged U your wolf today?
-
-
- Volume-Number: Volume 14, Number 44
-
-