Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under threads...

Thread Weaver is a framework for writing multi-threaded unit tests in Java.

It provides mechanisms for creating breakpoints within your code, and for halting execution of a thread when a breakpoint is reached. Other threads can then run while the first thread is blocked. This allows you to write repeatable tests for that can check for race conditions and thread safety.

See the "Wiki" tab for a Users' Guide. For full documentation, please see the "docs" directory on the source tree, or in the main zip file on the Downloads page. The source tree also contains several examples of common race conditions, and shows how to test these using Thread Weaver.

http://code.google.com/p/thread-weaver/

Users Guide
http://code.google.com/p/thread-weaver/wiki/UsersGuide

Filed under: threads

imageme says...

hope you enjoy this series of desktop background wallpapers.
 
these images are created for a 1.6:1 aspect ratio. the image resolution is 2560x1600, use a setting such as center or fit if you are using a different resolution. this series is comprised of images i like and personally use as my desktop backgrounds.

Filed under: threads

Alec says...

The "easiest" way of integrating threads with PyGTK applications seems to be by using gobject.

Initialisation before starting the GTK main loop:

import gobject
gobject.threads_init()

Schedule any rendering functions from your thread with:

gobject.idle_add(window.queue_draw)

Also useful is the timeout_add function, which schedules periodic callbacks:

gobject.timeout_add(250, window.queue_draw)

Filed under: threads