home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.realtime
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zazen!doug.cae.wisc.edu!umn.edu!deci.cs.umn.edu!hansen
- From: hansen@deci.cs.umn.edu (David M. Hansen)
- Subject: Re: OS/2 experience?
- Message-ID: <1992Nov6.193402.13261@news2.cis.umn.edu>
- Keywords: Looking for information on OS/2
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: deci.cs.umn.edu
- Organization: University of Minnesota
- References: <meek.4.720854882@fizzy.csu.murdoch.edu.au> <25418@io.camcon.co.uk>
- Date: Fri, 6 Nov 1992 19:34:02 GMT
- Lines: 38
-
- In article <25418@io.camcon.co.uk>, sjp@camcon.co.uk (Steve Pearce) writes:
- |> 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.
-
- Doesn't OS/2 use virtual memory (i.e. swapping to disk)? If so, it would
- probably be wise to turn this feature off, if possible. Otherwise, you may
- introduce unpredictable non-deterministic (albiet generally short) delays in
- your program, just by executing the next instruction...
-
- -=Dave
-
- Disclaimer: I don't know, I've never used it.
-