PDA

View Full Version : Threaded program



vasanth
03-02-2002, 10:57 AM
Is there any way i can write threaded programs using Turbo c++ v3.0

Brian
03-02-2002, 11:03 AM
No, get a new compiler, then look here:

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

Shiro
03-02-2002, 12:45 PM
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

Brian
03-02-2002, 12:47 PM
I don't think DOS supports true multithreading, though.

Shiro
03-02-2002, 12:54 PM
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.

Brian
03-02-2002, 12:57 PM
By true multithreading I mean >1 processor at once.

Shiro
03-02-2002, 12:59 PM
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.

Brian
03-02-2002, 01:00 PM
None of the windows support proper real true multitasking, they can only use 2 processors max, phh.