In article <ebce2377.0406060419.7ccabcad@posting.google.com >, Alexandre
MELARD <amelard@hotmail.com> wrote:
[color=blue]
> HI,
> I have a tricky problem about parallel processing using JavaScript.
>
> a script makes use of classes.
> 2 objects A and B are created at intialisation. The two objects make
> use of the same function foo().
> at runtime, the action:
> A.foo();
> B.foo();
> is executed.
>
> I noticed that in any browser, the result will be that the browser
> executes the function foo() related to A. Then stop and execute the
> function foo() related to B. This leave A unfinished.
> Is there a possiblity to have the function called by A running at the
> same time than B's one? I mean having two instance of the function
> running at once.
>
> Any help would be greatly apreciated.
>
> Thank you.
>
> Alexandre MELARD.[/color]
Please be clearer as to what you mean by unfinished. There is no
parallel procesing in javascript. The function will be reused with its
variables reinitialized.
--
Dennis Marks
http://www.dcs-chico.com/~denmarks/
Mail to the return email address is bounced.
Go to web site for active email address.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----