In this case I’ll use the Master-Workers pattern. We cannot have everything in life, each story has two faces :-) but are necessary for correctness (safety properties).serializations / sequentialization are poison for performances. the execution proceeds in asynchronous mode: different tasks help to calculate the result and, afterwards, they are synchronized in passive mode through a simple monitorĬaution regarding synchronization: poisoning of the concurrent programming style.in this case, task decomposition follows data decomposition.first, data units are identified, then task related so that units can be identified.choosing good task boundaries, coupled with a sensible task execution policy, can help achieve these goals.independence facilitates concurrency, as independent tasks can be executed in parallel if there are adequate processing resources.tasks must be sufficiently independent so that managing dependencies takes only a small fraction of the program’s overall execution time.The problem can be easily decomposed into units that can be operated relatively independently like a divide-et-impera principle, it can be naturally decomposed into a collection of independent tasks:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |