Talk:Concurrent computing: Difference between revisions
Content added Content deleted
No edit summary |
(→Random order?: OIC) |
||
Line 4: | Line 4: | ||
::"Undetermined" might be the more appropriate word. At least one of the programming examples attempts to enforce random behavior. --[[User:Short Circuit|Short Circuit]] 14:17, 7 February 2007 (EST) |
::"Undetermined" might be the more appropriate word. At least one of the programming examples attempts to enforce random behavior. --[[User:Short Circuit|Short Circuit]] 14:17, 7 February 2007 (EST) |
||
:::Random is what I wanted. The Ada example I provided creates three separate tasks. Each one calculates a random number between 0.0 and 1.0. The task then delays the number of seconds corresponding to that random number. A delay of 0.5 lasts 0.5 seconds. There are two goals to "Simple concurrent actions". Those goals are to demonstrate the syntax for defining concurrent behavior within a single program, and the syntax for creating a random sleep or delay. --[[User:Waldorf|Waldorf]] 17:59, 7 February 2007 (MST) |
:::Random is what I wanted. The Ada example I provided creates three separate tasks. Each one calculates a random number between 0.0 and 1.0. The task then delays the number of seconds corresponding to that random number. A delay of 0.5 lasts 0.5 seconds. There are two goals to "Simple concurrent actions". Those goals are to demonstrate the syntax for defining concurrent behavior within a single program, and the syntax for creating a random sleep or delay. --[[User:Waldorf|Waldorf]] 17:59, 7 February 2007 (MST) |
||
::::I see. You might want to explain that in the task; I thought the task's purpose was simply to demonstrate forking. --[[User:Short Circuit|Short Circuit]] 20:33, 7 February 2007 (EST) |