Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Creating/forking a new process/thread in eclipse
Creating/forking a new process/thread in eclipse [message #295169] Fri, 25 November 2005 08:41 Go to next message
vijaishanker is currently offline vijaishankerFriend
Messages: 60
Registered: July 2009
Member
hi,

I want to run a process of indexing a database when i click on an
action.How do i create a new thread/process using the eclipse api, should
I be using the "jobs API" or make it run in a class that implements
"Runnable"
Which one is a better approach or are there any other better methods...

thanks

Vijai
Re: Creating/forking a new process/thread in eclipse [message #295172 is a reply to message #295169] Fri, 25 November 2005 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Using a job is better, because (a) the user can see it is happening, and (b) they have control of killing it off if necessary. You can change the priority of the job so that it is a low priority (so that others can overtake it). Your action then becomes launching the job.


http://help.eclipse.org/help30/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/runtime_jobs.htm
Re: Creating/forking a new process/thread in eclipse [message #295360 is a reply to message #295169] Mon, 28 November 2005 22:32 Go to previous message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

I highly recommend this article on jobs from eclipse.org:

http://www.eclipse.org/articles/Article-Concurrency/jobs-api .html
--

Vijai wrote:
> hi,
>
> I want to run a process of indexing a database when i click on an
> action.How do i create a new thread/process using the eclipse api,
> should I be using the "jobs API" or make it run in a class that
> implements "Runnable"
> Which one is a better approach or are there any other better methods...
>
> thanks
>
> Vijai
>
Previous Topic:3.1 Help stopped opening, HTTP 500 server error. Tomcat problem?
Next Topic:find out the Eclipse version
Goto Forum:
  


Current Time: Fri Aug 23 11:20:00 GMT 2024

Powered by FUDForum. Page generated in 0.03508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top