|
Re: asyncExec() func. doesn't work in parallel..?? [message #452972 is a reply to message #452967] |
Tue, 29 March 2005 12:16 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03188 seconds