From 6984345d0af6fb88438ad260fb9146bc8c36466b Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Tue, 5 Mar 2024 09:15:57 +0100 Subject: Added threading exercise --- build.zig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 71ea66f..5263023 100644 --- a/build.zig +++ b/build.zig @@ -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 = -- cgit v1.2.3-70-g09d2