Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » asyncExec() func. doesn't work in parallel..??
asyncExec() func. doesn't work in parallel..?? [message #452967] Tue, 29 March 2005 11:25 Go to next message
peress is currently offline peressFriend
Messages: 2
Registered: July 2009
Junior Member
I've written a code like below that.

Process #1 {
....
....
display.asynExec(Process #2)
....
}


I thinked that the order will be worked in parallel like this..

process #1 -> execution process #2

-> process #1 (at the same time)
-> process #2 (at the same time)

but the actual order is like this..

process #1 -> when the process #1 is ended -> process #2


"worked in parallel" doesn't mean that processes don't work simultaneously??
I don't know... ㅜㅜ

plz..... and thanks..
Re: asyncExec() func. doesn't work in parallel..?? [message #452972 is a reply to message #452967] Tue, 29 March 2005 12:16 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

peress@empal.com wrote:
> I've written a code like below that.
>
> Process #1 {
> ....
> ....
> display.asynExec(Process #2)
> ....
> }
>
>
> I thinked that the order will be worked in parallel like this..
>
> process #1 -> execution process #2
>
> -> process #1 (at the same time)
> -> process #2 (at the same time)
>
> but the actual order is like this..
>
> process #1 -> when the process #1 is ended -> process #2
>
>
> "worked in parallel" doesn't mean that processes don't work simultaneously??
> I don't know... ㅜㅜ
>
> plz..... and thanks..

If process #1 is not currently running in the UI thread, then there is
the possibility they will run at the same time. If process 1 is in the
UI thread, then no, it will finish first before process 2 is allowed to run.


CL

p.s. whether or not you see a thread switch is strongly tied to the
behavior of your OS which controls such things.
Previous Topic:set the combo box drop down list height ?
Next Topic:Why is the default DropEvent.feedback DND.FEEDBACK_SELECT?
Goto Forum:
  


Current Time: Sat Apr 20 00:21:42 GMT 2024

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

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

Back to the top