Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Running a process in background
Running a process in background [message #281240] Thu, 17 February 2005 03:46 Go to next message
Eclipse UserFriend
Originally posted by: bozu.hotmail.com

Hi

i would like to run a process (a saving report process)in background. I
have a viewer like the adobe acrobat and i wan to run the saving process
in background while i continue to view my pdf file. How do you do that?
And how does display.asyncExec() method works? i try to test it but it is
not running in the background. In fact, it is running in the current
thread. I want it in a separate thread. Please advice.

thanks,
bozu
Re: Running a process in background [message #281253 is a reply to message #281240] Thu, 17 February 2005 09:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Look up Jobs. That will do what you want.

See:
http://eclipse.org/articles/Article-Concurrency/jobs-api.htm l


--
Thanks,
Rich Kulp
Re: Running a process in background [message #281265 is a reply to message #281240] Thu, 17 February 2005 12:09 Go to previous message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

Display.asyncExec runs in the main thread. This may be the "current" thread,
but it may not be.
You need asyncExec if you run outside the UI thread and need to access the
UI somehow.

For an explanation of asyncExec see:

http://www.eclipsefaq.org/chris/faq/html/faq140.html

As Rich Kulp says, Jobs are your friend for background activities:

http://www.eclipsefaq.org/chris/faq/html/faq127.html

If you really want to run another physical OS process, see

org.eclipse.swt.program.Program.launch(String)

--
Chris Laffra, http://eclipsefaq.org


"bozu" <bozu@hotmail.com> wrote in message
news:cv1lkm$3ki$1@www.eclipse.org...
> Hi
>
> i would like to run a process (a saving report process)in background. I
> have a viewer like the adobe acrobat and i wan to run the saving process
> in background while i continue to view my pdf file. How do you do that?
> And how does display.asyncExec() method works? i try to test it but it is
> not running in the background. In fact, it is running in the current
> thread. I want it in a separate thread. Please advice.
>
> thanks,
> bozu
>
Previous Topic:Use variable environment in debug mode for Junit
Next Topic:Message Box
Goto Forum:
  


Current Time: Sun Jul 27 01:37:08 EDT 2025

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

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

Back to the top