Previous | Next --- Slide 40 of 64
Back to Lecture Thumbnails
timothyyeo

Run child first, or continuation stealing, runs the child first and enqueue the continuation in its work queue. The other idle thread steals the continuation from the work queue and spawns a task and then enqueues the rest of the continuation into its own work queue. This process is continued until all of the work queues are empty. Therefore, this method runs the program in the same order as the program without spawns.

Please log in to leave a comment.