Added threading exercise

This commit is contained in:
Chris Boesch
2024-03-05 09:15:57 +01:00
parent 277304454a
commit 6984345d0a
4 changed files with 161 additions and 0 deletions

View File

@@ -1103,6 +1103,20 @@ const exercises = [_]Exercise{
\\This little poem has 15 words!
,
},
.{
.main_file = "104_threading.zig",
.output =
\\Starting work...
\\thread 1: started.
\\thread 2: started.
\\thread 3: started.
\\Some weird stuff, after starting the threads.
\\thread 2: finished.
\\thread 1: finished.
\\thread 3: finished.
\\Zig is cool!
,
},
.{
.main_file = "999_the_end.zig",
.output =