Just to experiment, I tried fork()/wait() because I'm familiar with that. I wrote a little test program to see if the forked children were running and I got:
but I haven't a clue about the negative process IDs {and, indeed, I looked at task manager and there wasn't either process in the list}, so I couldn't tell if they were really independent processes and would run on different CPU cores.>parallel this is a test of parallel processing Starting the first child first child pid is -14236 I'm the first child and I'm gonna wait for a while second child pid is -10372 I'm the second child and I'm gonna wait for a while number 1 signing off number 1 is done number 2 signing off number 2 is done we're done
Back in my Unix days I wrote a complete TCP server in Perl! worked like a champ. Sucks that Windows doesn't have a fork/kill/wait process structure} so it looks like i have a lot of learning to do to get something like that to work on Win10.
Thanks!
In reply to Re^2: Parallel processing on Windows
by BernieC
in thread Parallel processing on Windows
by BernieC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |