|
|
|
|
|
by euccastro
6732 days ago
|
|
> use your language and/or library's native thread synchronization features You may try using a single thread and cooperative multitasking. It helps if your language makes this convenient, e.g., Stackless Python or Scheme: http://news.ycombinator.com/item?id=45561 Just remember to yield every now and then if you do anything lengthy. Depending on your application, it may not be that bad, and if you don't need anything fancier in the way of scheduling fairness, it makes your life really simple. |
|