childwhile
Childwhile is a conceptual pattern in concurrent programming described as a parent control structure that orchestrates one or more subordinate loops, called child loops, within a single or multi-threaded context. It is not a formal language construct in major programming languages, but a term used in discussions of nested looping and task coordination to illustrate how a parent loop can manage multiple concurrent sub-tasks.
Origin and usage: The term blends "child" and "while," reflecting its structure of a controlling loop (the
Mechanics: A typical childwhile pattern involves a parent loop that, at each iteration, creates, assigns, or
launch child_loop(task) for task in tasks
wait for all child_loops to complete
update parent_done based on child results
Applications and considerations: The pattern is discussed as a way to structure work that can be broken
See also: while loop, concurrency, parallelism, fork-join, asynchronous programming, task orchestration.