Skip to content

Instantly share code, notes, and snippets.

@ryuichiueda
Last active December 13, 2023 10:21
Show Gist options
  • Save ryuichiueda/c12f607ec3b118eb06f6f80d2f00f7b9 to your computer and use it in GitHub Desktop.
Save ryuichiueda/c12f607ec3b118eb06f6f80d2f00f7b9 to your computer and use it in GitHub Desktop.
thread-fork test result
$ cargo run
・・・
1秒後 Child: ""
2秒後 Child: ""
3秒後 Child: ""
4秒後 Child: ""
5秒後 Parent { child: Pid(50794) }: "written"
5秒後 Child: ""
6秒後 Parent { child: Pid(50794) }: "written"
6秒後 Child: ""
7秒後 Parent { child: Pid(50794) }: "written"
7秒後 Child: ""
・・・
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment