Page 1 of 1

Multi tasking in C!!

Posted: Thu Nov 21, 2002 4:17 am
by Rajib Mazumder
Hey All
Is it possible to have a multitasked program. that is if it is possible to do 2 or more task in C at the same time???

Posted: Sun Nov 24, 2002 10:02 pm
by Juergen Werner
What you'd like to do is specific to the operating system, so there is no general way to solve this.

Under Unix/Linux, there is the 'fork()' command that creates a child process (conforming to POSIX, BSD, ...), information on this can be found in the Unix Programming FAQ ( http://www.erlenstar.demon.co.uk/unix/faq_toc.html ).

It's not allowed on the Online Judge. ;(