Python Desktop Server Weblog 25.2.2004

a picture of myself

Münsterland.org

2004-02-25

More experimental features in TooFPy

The CVS version of the Toolserver Framework For Python has two more experimental features:

  • easy tool-level locking
  • timed execution of methods
  • queued execution of methods

Timed execution is much like the asynchronous method calling, only you give a time when the call should happen. The timed events are managed by one worker thread from the worker pool. As soon as there are no more timed events, this worker will be freed up, again.

Queued execution is much like timed execution, except the event is triggered as soon as there is a thread available to handle them. All queued events are processed in sequence by one worker thread, so you don't get worker usage explosion if you need to trigger many events that are not time critical. If you would use asynchronous execution, every event would be handled immediately and this would result in many worker threads being occupied. Queued events have a priority - they are processed in the order of first priority, second age. So important events can be pushed to the front, less important events can be delayed.

Tool locking is usefull to secure critical areas in your tool - for example if you write data to the local filesystem. The local filesystem got private storage, too - so you can decide wether files stored should be accessible via HTTP or not.

posted at 13:03:12    #
February 2004
MoTuWeThFrSaSu
       1
2 3 4 5 6 7 8
9101112131415
16171819202122
23242526272829
Jan
2004
 Oct
2004

This is the Python Desktop Server weblog.


(Donations will be used by the author to buy stuff, fullfill selfish wishes or do other silly recreational things. You have been warned.).
The PyDS is
OSI Certified Open Source Software

Python Powered

XML-Image

© 2004-2007, Georg Bauer