Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Green threads
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
 
Nadav Wiener  
View profile  
 More options Apr 11 2009, 8:22 pm
From: Nadav Wiener <nadav.wie...@gmail.com>
Date: Sat, 11 Apr 2009 17:22:27 -0700 (PDT)
Local: Sat, Apr 11 2009 8:22 pm
Subject: Green threads
Hi Sergio,
I've been playing around with Google App Engine's recent Java support.
They are pretty restrictive -- you can't spawn new threads (new Thread
() isn't permitted by their security manager).

The restrictions make lots sense in terms of billing and performance
management, but since they already limit CPU time, I see no harm to
them in trying to regain some limited concurrency within the local
scope of a single request, if just for the fun of it :)

That's how I came by your library -- searched Twitter for "green
threads".
I tried to deploy a modified pingpong-with-local-actors sample in GAE
SDK's local server, but ran against GreenMessageDispatcher, trying to
create a new selector thread.

My question: since the selector thread is essentially a "main loop",
would it make any sense to pull its functionality to the main thread?
that is, create a topology, spawn actors, but defer the OnSpawn event
handling to when the main loop starts up.

This way, a single request to a GAE application can spin up lots of
actors for a short duration.

Does this make any sense?

Thanks,
-Nadav.


 
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.
Sergio Bossa  
View profile  
 More options Apr 12 2009, 8:55 am
From: Sergio Bossa <sergio.bo...@gmail.com>
Date: Sun, 12 Apr 2009 14:55:17 +0200
Local: Sun, Apr 12 2009 8:55 am
Subject: Re: [actorom-discussions] Green threads

On Sun, Apr 12, 2009 at 2:22 AM, Nadav Wiener <nadav.wie...@gmail.com> wrote:
> I tried to deploy a modified pingpong-with-local-actors sample in GAE
> SDK's local server, but ran against GreenMessageDispatcher, trying to
> create a new selector thread.

The selector thread is needed because it blocks waiting on the MessageQueue.
In order to use the the main thread, we should use some kind of event
listener, avoiding to wait and block everything.
What do you think?
I'll take a look: in the meantime, any contribution would be very welcome :)

Cheers,

Sergio B.

--
Sergio Bossa
Software Passionate and Open Source Enthusiast.
Blog : http://sbtourist.blogspot.com
Pro-Netics : http://www.pronetics.it
Sourcesense : http://www.sourcesense.com


 
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 »