Defined in:Submits a job for execution.
void SubmitJob(Job *job);
void SubmitJob(BatchJob *job, Batch *batch);
||The job to submit.|
||The batch to which the job is added.|
SubmitJobfunction submits the job specified by the
jobparameter to the Thread Manager for execution. The Thread Manager adds the job to a queue, and it is executed by the next available worker thread. Worker threads take jobs from the queue in first-in-first-out order.
batchparameter is specified, then the
jobparameter must specify a batch job. The job is added to the batch before the
No assumptions should be made about when a job starts executing. A job may or may not have begun executing before the
If the job specified by the
jobparameter is already in the executing state when the
SubmitJobfunction is called, then the
SubmitJobfunction waits for the job to finish execution before queuing for execution again.