DOS critical zone

This is a discussion on DOS critical zone within the A Brief History of Cprogramming.com forums, part of the Community Boards category; What I need is a way to write some code for simulate a semaphore to aisle some critical zone from ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    1

    Question DOS critical zone

    What I need is a way to write some code for simulate a semaphore to aisle some critical zone from entering again while processing in it. Any idea or link?

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    An idea: define a global variable which serves as a semaphore. Then implement the P and V operations to manage semaphore handling.

    By the way, are you concurrent programming under DOS?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  2. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 11:32 AM
  3. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 07:15 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM
  5. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 07:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21