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
How to make gevent blocking "resistent"?
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
  1 message - 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
 
galfy  
View profile  
 More options Oct 17 2012, 11:44 am
From: galfy <galfyo.pun...@googlemail.com>
Date: Wed, 17 Oct 2012 08:44:17 -0700 (PDT)
Local: Wed, Oct 17 2012 11:44 am
Subject: How to make gevent blocking "resistent"?

In applications that are using gevent the fun stops when you hit a blocking
IO operation or long running, non-cooperative code. Now if I want to
protect myself from such cases it will be great if "a system" (gevent,
greenlets or the python itself) can spawn a thread when it detects that the
python execution is blocked. Similar to the quote from this post:
http://mail.python.org/pipermail/python-ideas/2012-October/016458.html:

> IIUC in Go this is solved by mixing threads and lighter-weight constructs

(say, greenlets) -- if a greenlet gets blocked for I/O,
> the rest of the system continues to make progress by spawning another

thread.

Here is my question: Is it possible to implement this and if the answer is
yes - then how?

Regards,
 Slavey


 
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 »