Most Tweeted

  • Suggestions always welcome (3074 Tweets)
  • Python Cooperative Multitasking (1138 Tweets)
  • Welcome (0 Tweets)
  • About (0 Tweets)
  • Introducing Codex 2.0 (0 Tweets)
  • Python Cooperative Multitasking

    As many of you who may know me are already aware, I have been working on a cooperative multitasking library.  I hope to have the code posted on this site within the week.  The basic idea about the library is that it allows a user to be able develop threadlets.  A threadlet is a small python function that has been written as a generator.  There is a scheduler object that goes though the different threadlets and runs them one at a time.  The reason I decided to employ this technique is because of the simplicity of writing the threadlets.  Now, this library isn’t really geared towards someone that needs a lot of complex code in a threadlet, that would probably best be served by using Python’s built in library.  However, this has the potential to be very useful for highly concurrent applications.  To that end, the scheduler has a pluggable communication interface.  This allows the programmer to select the method of communication for his application that best supports the function of his program.  I hope to release some code samples with the library, as well as developing a few full applications that use this library.

    Some benifits of this library:

    • Small size
    • Threadlets are ≈ 1.5KB
    • Pluggable communication between the threadlets
    • Written in Python 3

    Stay tune as more information is available.

    -Mike

    3 Total TweetBacks: (Tweet this post)
    • en: OMG..sounds like a coyote or three are struggling with a dog and winning. Yelled out the window. Doubt it helps. Ugh. Hate this shit. 07/14/09 09:51am
    • en: Are you a burnt out real estate agent or investor? I was and I am SO glad I found this program. http://short.to/j04a 07/14/09 09:51am
    • en: @shaundiviney rain on her parade is an amazing song, this is going 2 sound so stupid but is it u or andy singin, i think its andy but is it? 07/14/09 09:51am

    Leave a Reply

     

     

     

    You can use these HTML tags

    <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>