mikeash.com pyblog/friday-qa.html commentshttp://www.mikeash.com/?page=pyblog/friday-qa.html#commentsmikeash.com Recent CommentsThu, 28 Mar 2024 23:59:56 GMTPyRSS2Gen-1.0.0http://blogs.law.harvard.edu/tech/rssNikita Zhuk - 2008-12-15 00:09:02http://www.mikeash.com/?page=pyblog/friday-qa.html#commentsWorker threads / operation queues are very clean and easy-to-understand techniques to implement the concurrency in an application. Their use also seem to lead to better design, since they force the developer to model the application in terms of processes which may be executed in parallel. Spawning new threads manually with detachNewThreadSelector:.. on per need basis seems to decrease code readability and maintainability, since application's runtime structure (i.e. threads) isn't reflected in application's static structure (i.e. classes/components). So there seems to be a relationship between operation queues and components their are part of - e.g. a cache component has an operation queue of caching operations, an image processing component has a queue of image processing operations etc. <br /> <br />Would you like to discuss about software design in terms of potentially parallelly executable processes?71a28f1ed39c0effdfedc23d1820bd0bMon, 15 Dec 2008 00:09:02 GMTcharles - 2008-12-14 08:29:56http://www.mikeash.com/?page=pyblog/friday-qa.html#commentshow about something on OpenCL?2628c06138d01bc79102a4c407882188Sun, 14 Dec 2008 08:29:56 GMTPhil Holland - 2008-12-13 23:23:48http://www.mikeash.com/?page=pyblog/friday-qa.html#commentsGiven your work on both GPULife and RAOperationQueue, I'd be interested in hearing your thoughts on when to use the different forms of parallel processing available to developers; what you see as appropriate, acceptable, and incorrect.b669cee976ca4ac2e1e8efb1a9b32f2eSat, 13 Dec 2008 23:23:48 GMTSam McDonald - 2008-12-13 16:15:10http://www.mikeash.com/?page=pyblog/friday-qa.html#commentsI have seen that you know a lot about threading and writing code that does a great job of utilizing all cores of a computer RAOperationQueue being a recent example. How did you get into this? Was it something that interested you, so you learned it? Or was there just a need, where you work? <br />362ac0f1ab060b13f04ff9bdd3dafb5bSat, 13 Dec 2008 16:15:10 GMT