J
jacob navia
Ian said:So threads aren't bad after all.
No. Threads as used commonly in C and C++ leave the complexity
of managing a global context in parallel to the programmer. He/she
has to figure out all the synchronization, randezvous, etc etc
needed to keep sanity. This is just impossible and will result always
in systems that have synchronization bugs.
It is just not scalable, because people can't be perfect at all times,
and this is a constant in my argumentation here. You can have a good
programmer that will be good most of the time. You will have a
bad programmer that will be good only sometimes. But NOBODY will
be perfect, and that is what is required: perfection.
It is a similar discussion as the malloc/free discussion. You can get
away with it when the system is small, but in a BIG system you are bound
to make a mistake.