Separated context of execution on each request

37 views
Skip to first unread message

Paulo Coutinho

unread,
Sep 18, 2012, 12:43:52 AM9/18/12
to v8-u...@googlegroups.com
Hi people, im new here on group.

I have a small project that integrate SFML and V8 (https://github.com/prsolucoes/sfml-cmake).

I have a main class "Engine" that init the SFML and start a thread to execute the "robot1.js" and "robot2.js" files isolated from main thread.

I dont know if im creating on correct mode, because the "sleep" method or anything that take a long time to execute on "thread" is locking the application.

You can see here:

My idea is create a thread that will process "robot1.js" and another thread that will process "robot2.js".

Can anyone help me?

Michael Schwartz

unread,
Sep 18, 2012, 9:05:11 AM9/18/12
to v8-u...@googlegroups.com
http://github.com/mschwartz/SIlkJS

You can trivially write JavaScript that calls SilkJS's process.fork() and run robot1.js and robot2.js in distinct processes (separate contexts).

Reply all
Reply to author
Forward
0 new messages