Click to See Complete Forum and Search --> : timer control on dos console


jugnu23
May 5th, 2003, 04:53 AM
hello friends
i have a problem initialising timer along with other application. i want to run both of them simultaneosly.
what i try to do is run two application using spawnl function in turboc++ 3.0 but to run a child process simultaneously without affecting the parent process, the option given in spwanl p_nowait is not implemented. how to get the same in turboc++3.0

it's urgent nad important too

cup
May 6th, 2003, 12:32 PM
Are you running in DOS or in a DOS console under windows?

If you are running in DOS, you could write a TSR. Run one task in the TSR and the other on the console. Not a very good option as TSRs are difficult to debug.

If you are running on a DOS console under windows, you may be able to access the threading functions. I know you can on Watcom C/C++ 11.0 but I don't know about TurboC++ 3.0. Have a look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__beginthread.2c_._beginthreadex.asp