home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!doc.ic.ac.uk!uknet!acorn!camcon!sjp
- From: sjp@camcon.co.uk (Steve Pearce)
- Newsgroups: comp.realtime
- Subject: Re: OS/2 experience?
- Keywords: Looking for information on OS/2
- Message-ID: <25418@io.camcon.co.uk>
- Date: 6 Nov 92 16:53:50 GMT
- References: <meek.4.720854882@fizzy.csu.murdoch.edu.au>
- Organization: Cambridge Consultants Ltd., Cambridge, UK
- Lines: 34
-
- meek@fizzy.csu.murdoch.edu.au (Lindsay Meek) writes:
-
- >Hello,
- > I'm thinking of using OS/2 for process control and I'm wondering
- >whether it can be relied apon to schedule high priority tasks at some
- >sort of deterministic time interval.
- > Does anybody know whether this is possible? and If not, can an
- >interrupt service routines be used to get around the OS/2 scheduler?
- >Thanks
- > Lindsay Meek
-
- OS/2 user-programmable event timer routines are ok for approximate scheduling
- activities, but they are limited by being tied to the timer-tick interrupt
- which runs at 31msec intervals, (~32Hz), intervals of less than a couple of
- hundred msecs are too inaccurate for serious real time work.
-
- Interrupt service routines have to be written as OS/2 device drivers as OS/2
- runs in protected mode. To provide a fast, accurate timer you will need
- additional hardware containing a counter/timer chip clocked at a sensible
- rate. Look for an adapter card with OS/2 support.
-
- When programming real time applications in OS/2, be careful not to over-rely
- on system services such as semaphores and shared memory. These can take a
- large processing chunk out of tight timing loops, especially in <486 systems.
-
-
- OS/2 is suitable for real time applications and it has the benefit of
- supporting lots of other PC applications as well.
-
-
- Steve Pearce | sjp@uk.co.camcon
- Systems & Engineering Applications |
- Cambridge Consultants | Tel: (int +44) (0)223 420024
- Science Park | Fax: (int +44) (0)223 423373
- Cambridge |
-