Can anyone tell me the relationship of job and thread? [message #459899] |
Fri, 08 December 2006 08:45  |
Eclipse User |
|
|
|
Originally posted by: asper975.163.com
I think "job" like thread in java.
but in help document,when I read the function of job technology.
I cannot see anything between job and thread.
Can anyone tell me the relationship of job and thread?
|
|
|
Re: Can anyone tell me the relationship of job and thread? [message #459900 is a reply to message #459899] |
Fri, 08 December 2006 09:07   |
Eclipse User |
|
|
|
It's more like a runnable than a thread. The point about a job is that it's a unit of work. Something else runs the job. There could be a thread pool, and Eclipse picks whatever one is free, or there could be a single thread running through all the outstanding jobs.
There's a lot of other stuff in the infrastructure which allows jobs to be prioritised over another, ensure that only one job gets run at a time, that kind of thing.
So whilst a Thread, at some point, is going to be used to run a Job, which thread it is, and how that thread is created, isn't of any relevance to you as a Job developer.
Alex.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02742 seconds