From 99e2e923d0c77b02f3fb4ff648ea916954868606 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 28 Feb 2025 23:13:39 +0800 Subject: chore(store): move everything to store. --- store/works/life/operating-system-experiment/main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 store/works/life/operating-system-experiment/main.cpp (limited to 'store/works/life/operating-system-experiment/main.cpp') diff --git a/store/works/life/operating-system-experiment/main.cpp b/store/works/life/operating-system-experiment/main.cpp new file mode 100644 index 0000000..ada8c85 --- /dev/null +++ b/store/works/life/operating-system-experiment/main.cpp @@ -0,0 +1,16 @@ +#include "Thread.h" + +#include +#include + +int main() { + cru::Thread thread1([](const std::string &s) { std::cout << s; }, + "Hello world! 1\n"); + thread1.Join(); + + cru::Thread thread2([](const std::string &s) { std::cout << s; }, + "Hello world! 2\n"); + thread2.Join(); + + return 0; +} -- cgit v1.2.3