I don't know where I can find more information about crontab, so I ask here. Crontab is it multithread? How does it work?
|
Probably not. All cron has to do is (to express it simplified) watch until it is time to run one job or the other, and if so, fork a process which runs that job and periodically check if the job is finished in order to clean it up. MT could be used for this waiting, but I think that would be overkill. With the |
|||
|
|
|
There are a number of implementations of cron for Linux. Whether any of them are multi-threaded or not is not really a question that I think is relevant unless you're trying to write your own implementation of the cron daemon. |
|||||||||
|
|
Traditional unix commands of this sort are not multithreaded. They use a fork-exec model. In the case of cron, it forks off a shell to run the commands in the crontab line. The cron daemon does not wait for the child to finish executing, although IIRC it may handle certain signals sent by the child. |
||||
|
|
crondaemon, or about cron jobs to be executed in parallel? – Stéphane Gimenez Sep 8 '11 at 9:51