Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Separated context of execution on each request
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paulo Coutinho  
View profile  
 More options Sep 18 2012, 12:43 am
From: Paulo Coutinho <pa...@prsolucoes.com>
Date: Mon, 17 Sep 2012 21:43:52 -0700 (PDT)
Local: Tues, Sep 18 2012 12:43 am
Subject: Separated context of execution on each request

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:
https://github.com/prsolucoes/sfml-cmake/blob/master/Engine.cpp
https://github.com/prsolucoes/sfml-cmake/blob/master/Engine.h

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

Can anyone help me?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Schwartz  
View profile  
 More options Sep 18 2012, 9:05 am
From: Michael Schwartz <myk...@gmail.com>
Date: Tue, 18 Sep 2012 06:05:11 -0700
Local: Tues, Sep 18 2012 9:05 am
Subject: Re: [v8-users] Separated context of execution on each request

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

On Sep 17, 2012, at 9:43 PM, Paulo Coutinho <pa...@prsolucoes.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »