www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - HELP NEEDED...I'M DESPERATE...

I need help with my programming assignment and I'm totally clue less.
Here's what I need to do:

A foreground/background real-time system is one in which tasks are
categorized into two sets. The foreground set contains all tasks that
are high priority, and
     the background set contains all tasks that are low priority.
Generally the background task or tasks do some non-essential (or non
time critical) work like
     RAM scrubbing, ROM check summing, instruction testing, and so on.
An example of a foreground/background system presented in class was the
timer
     interrupt example, where the foreground was the ISR that
incremented counter and the background was just a polled loop.

     Your task in this assignment is to implement a
foreground/background system to create a time lock on a safe. The
background prints the current time and the
     unlock time on the screen. The foreground is tied to the PC's timer
interrupt and updates a timer variable. The program is to start by
requesting the user for the
     current time and also the unlock time. When it is time to unlock
the safe, the PC is to signal the user in some way. (Use your
imagination here).

Thanks everybody
Feb 14 2002