Create a private semaphore
Fork to create N processes
In every process
- convert its part
- lock the semaphore
- do the db import
- raise the semaphore
In reply to Re: Converting a parallel-serial shell script
by pjotrik
in thread Converting a parallel-serial shell script
by Corion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |