[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt] Basic questions about the Job class
|
- From: kun.wang@xxxxxxxxx (Sunny )
- Date: Wed, 26 Aug 2009 02:40:14 +0000 (UTC)
- Newsgroups: eclipse.rt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi,
I am new to the Eclipse Job API and have a few basic questions.
1. Can I think of org.eclipse.core.runtime.jobs.Job as Java Runnable?
2. If I have:
MyJob1 a = new MyJob1();
MyJob2 b = new MyJob2();
MyJob3 c = new MyJob3();
a.schedule();
b.schedule();
c.schedule();
Will a, b, and c be running in the same worker thread sequentially? Or
will they be running in 3 threads in parallel? If the former is true, what
is the general mechanism to run different jobs in different threads
parallelly? Can you please give an example?
Thanks in advance!
Sunny