home *** CD-ROM | disk | FTP | other *** search
- From: uunet!csun.edu!csuna!aeusemrs (mike stump)
-
- In article <228@longway.TIC.COM> uunet!sugar!peter (Peter da Silva) writes:
- >What sorts of approaches have people taken to doing real-time control under
- >UNIX? How far apart are the different standards?
-
- Below is from the Moderator, I hope.
-
- [ All comments I put in as the moderator are marked as from the
- moderator, with -mod at the end. The material you're referring to
- (below, starting ``I have this fantasy'') was not so marked, and wasn't
- from me: it came with the submission. Your submission is also littered
- with remarks in square brackets. I assume you put them there, since I didn't.
-
- In general, I would recommend that submittors use parentheses when
- they mean parentheses, instead of using brackets. -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;
- > }
- > }
- >]
-
- I don't offen support, or give hardware advice for systems that run Unix;
- but, In partial response to the Moderators comments about RealTime Unix, I
- feel I must respond.
-
- [ See above about whose remarks you're responding to. -mod ]
-
- Elxsi makes a very interesting computer when it comes to real time;
- some of the features include:
- being able to lock down physical memory, [Yes, I know everybody can do this,
- but without kernel hacking?!]
- lock down a register set, [can you say fast contex switch]
- high priority processes, [can you say preempt the Operating System?]
- Timer support to programs, [again, no kernel hacking].
-
- And just think, System V, and Berkeley 4.2 run under or was that along with
- EMBOS, and EMS, at the same time. (their VMS clone, although some bugs they
- don't emulate :-))
-
- All on 1-12 CPU machine [yes, it is pretty transparent], with up to two
- gigabytes of memory. And yes, as a matter of fact, I DO have a fully loaded
- one in my back bedroom, right next to the 32ton refrigeration unit. :-)
-
- And, now to the point, one is able to write the above program with little
- difficulty.
-
-
- Volume-Number: Volume 14, Number 45
-
-