4 ms·
Ask Reddit: what's the "hello world" program for multicores? : programming
- time_management 18y agoI've seen Monte Carle estimation of pi done, in Halloway's Clojure reference. The problem with the concept of a "Hello World" for concurrency is that there's no intuitive way of illustrating decent parallelism (try explaining livelock or race conditions to a CS 1 class) whereas the success or failure of a "Hello World" program is obvious: does it print?
- eru 18y agoHow about the dining philosophers? If none dies, your program probably works.
- lacker 18y agoHow about each one of n threads prints out "hello world".