in C, it is possible to run 2 infinite loops at the same time?
if yes, what is it called? parallel programming???
many thx for any responses
in C, it is possible to run 2 infinite loops at the same time?
if yes, what is it called? parallel programming???
many thx for any responses
Using a multi-threaded or multi-process solution you can.
Parallel programming I think is used in multiprocessor applications.
are there books which explain how to have multi-thread?
terima kasih
hmm....look up the fork() command (if youre in *nix/lin*x) windows....i dont know.
fork() is actually multi-process.
Multi-threading and multi-process are platform specific. I am sure there are books on the subject. Do a search on the board for pthread that should turn up a good amount of information.
"Programming Windows" by Charles Petzold (Microsoft Press) has a chapter on multithreading.
le multi processsing sur c n'est pas possible mais vous pouvez divisez le travail a executer
dans certaines temp de travail comme tous les system d'exploi fait...
====>si vous voulez mon conseil
faite un log executable puis avec une commande c lancer ce programme en paralles avec le votre programme source et le sys d'exploi il s'organisera pour faire le multi process
---good luck