semaphores do not access like volatile

Ned Konz ned at
Fri Feb 14 04:27:15 UTC 2003

On Thursday 13 February 2003 12:18 pm, Lex Spoon wrote:
> PS -- people who have been here very long, know that I truly think
> you should get rid of the threads altogether!  You really need tool
> support to do it better than a single-threaded support. 

Hey, I made a Process Browser... what more do you want? <g>

> The
> initial extra complexity from the single-threaded version, is
> usually dwarfed by the complexities of synchronizing multiple
> threads.

Strict message passing semantics helps. I agree that semaphores and 
shared variables are tricky. As long as you don't have to share 
resources, each thread can live in its own world.

Ned Konz

More information about the Squeak-dev mailing list