Determine if forkjoin is suitable for solving a problem

Source: Internet
Author: User

Forkjoin can solve the following problems:

  1. Simulate the movement of a large number of simple objects, such as particle effects.

  2. Log Robust Analysis

  3. Data Operations counted from input, such as mapreduce operations.


Using the following list to check the Problem and Its subtasks is a practical and effective method. He can determine whether Branch/merge can be used to solve the problem.

  1. Does a problematic subtask not require explicit collaboration or synchronization with other subtasks?

  2. Does a subtask not modify the data, but only get some results after calculation (are they called "pure" functions by function programmers )?

  3. Is it natural for sub-tasks to divide and conquer tasks? Does a subtask create more subtasks, and they have a finer granularity than the ones that give birth to them?

Determine if forkjoin is suitable for solving a problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.