Thread: Threaded program

  1. #1
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683

    Threaded program

    Is there any way i can write threaded programs using Turbo c++ v3.0

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    No, get a new compiler, then look here:

    http://www.codeproject.com/threads/sync.asp

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Years ago I've done something like that at university with Borland C++ 3.1, so: yes it is possible.

    I assume you're using DOS, in that case it is possible to create processes and do a kind of multitasking. You could download a multitasking library for DOS or write some software by yourself to do it. You need to know assembly and ofcourse you'll need some basic computer architecture, since you need to work very low level.

    Ofcourse you could get a new compiler which supports threads in an easy way. But if you're really interested, take a look at:

    http://www.nomad.ee/soft/cmt.html

  4. #4
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    I don't think DOS supports true multithreading, though.

  5. #5
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    If I remember well, the 80386 could do multitasking, so higher processors also can do that. So if you have a computer with at least a 80386, or a processor with compatible specifications, you can do multitasking. When using DOS you need some extra software to manage multitasking.

  6. #6
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    By true multithreading I mean >1 processor at once.

  7. #7
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    In that case your correct. DOS is a single processor OS. When doing true multithreading (is it the right name?) you'll need a distributed OS.

  8. #8
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    None of the windows support proper real true multitasking, they can only use 2 processors max, phh.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  3. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  4. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM