Parallel Digital Watermarking Process on Ultrasound Medical Images in Multicores Environment
Table 2
Stage in life cycle of a job.
Job stage
Description
Pending
A job is created on the scheduler with the createJob function in client session of Parallel Computing Toolbox software. The job’s first state is pending. This is when the job was defined by adding tasks to it.
Queued
When the submit function is executed on a job, the MJS or scheduler places the job in the queue, and the job’s state is queued. The scheduler executes jobs in the queue in the sequence in which they are submitted, all jobs moving up the queue as the jobs before them are finished. The sequence of the jobs in the queue can be changed with the promote and demote functions.
Running
When a job reaches the top of the queue, the scheduler distributes the job’s tasks to worker sessions for evaluation. The job’s state is now running. If more workers are available than are required for a job’s tasks, the scheduler begins executing the next job. In this way, there can be more than one job running at a time.
Finished
When all of a job’s tasks have been evaluated, the job is moved to the finished state. At this time, the results can be retrieved from all the tasks in the job with the function fetchOutputs.
Failed
When using a third-party scheduler, a job might fail if the scheduler encounters an error when attempting to execute its commands or access necessary files.
Deleted
When a job’s data has been removed from its data location or from the MJS with the delete function, the state of the job in the client is deleted. This state is available only as long as the job object remains in the client.