hi
has anyone implemented design patterns for concurrent programming. If so did you have any implementation issues/difficulties??
Thanks ~Sanjay
hi
has anyone implemented design patterns for concurrent programming. If so did you have any implementation issues/difficulties??
Thanks ~Sanjay
The most common design pattern used in concurrent programming is probably producer/consumer. There are always lots of issues and difficulties with concurrent programming, especially when starting out, like understand exactly what locking does, understanding when you need locking, understanding how to avoid deadlocks, understanding the performance implications of concurrency, and such.
Do as much research and testing as possible when working with concurrent development and code reviews are even more important than normal.
The other thing to keep in mind is it's also much better to take advantage of work others have already done and proven to be successful--use classes and frameworks available in the framework you use and those available on the net.
I think if you are use to using design patterns on a daily basis you should be fine. Here is a link to a good book on the subject: http://java.sun.com/docs/books/cp/
Check this link, it's pretty comprehensive: http://parlab.eecs.berkeley.edu/wiki/patterns/patterns