[Biococoa-dev] immutability and multithreading

Charles PARNOT charles.parnot at stanford.edu
Tue Jan 18 17:56:56 EST 2005

I just remembered another advantage of immutable objects: 
multithreading. In general, immutable objects are safe, mutable are 
not. So if you only have mutable objects, you have to copy them 
before use and make sure the copy is private to the thread.

Multithreading-support is probably not a priority, but is something 
to also keep in mind.


Help science go fast forward:

Charles Parnot
charles.parnot at stanford.edu

Room  B157 in Beckman Center
279, Campus Drive
Stanford University
Stanford, CA 94305 (USA)

Tel +1 650 725 7754
Fax +1 650 725 8021

More information about the Biococoa-dev mailing list