in reply to Re^7: multithreads newbie question
in thread multithreads newbie question
Yes, you can. See the section on objects.
But it's gonna lead to very messy code. You'd need to lock the object every time you'd use it. If the object has multiple attributes, that could lead to spaghetti code really fast.
It's much better if you lay down the code as inputs → process → outputs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: multithreads newbie question
by daverave (Scribe) on Aug 11, 2010 at 07:16 UTC | |
by roboticus (Chancellor) on Aug 11, 2010 at 10:34 UTC | |
by ikegami (Patriarch) on Aug 11, 2010 at 15:55 UTC |