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.
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.
Comment