multithreading

This is a discussion on multithreading within the A Brief History of Cprogramming.com forums, part of the Community Boards category; How can I run multiple functions at once in dos, I know in theory how it would be done but ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    46

    multithreading

    How can I run multiple functions at once in dos, I know in theory how it would be done but all my attempts have failed.

    heres how I would do it:

    1. Hook a TaskSwitcher() function to some kind of timer (like 1C)
    2. Have it save the state of all the registers, flags, and the stack.
    3. Have it jump to the previously saved stuff.

    Im not sure how to do this and any help is appreciated.
    mooooo@cooowwww.com

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multithreading (flag stopping a thread, ring buffer) volatile
    By ShwangShwing in forum C Programming
    Replies: 3
    Last Post: 05-19-2009, 07:27 AM
  2. multithreading in C++
    By manzoor in forum C++ Programming
    Replies: 19
    Last Post: 11-28-2008, 11:20 AM
  3. Question on Multithreading
    By ronan_40060 in forum C Programming
    Replies: 1
    Last Post: 08-23-2006, 07:58 AM
  4. Client/Server and Multithreading
    By osal in forum Windows Programming
    Replies: 2
    Last Post: 07-17-2004, 03:53 AM
  5. Multithreading
    By JaWiB in forum Game Programming
    Replies: 7
    Last Post: 08-24-2003, 09:28 PM

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