-
I had a plugin with multiple threads, each thread responses to collect a kind of metrics, can these threads share the same output file descriptor (stdout)? Cheers. |
Beta Was this translation helpful? Give feedback.
Answered by
ilyam8
Apr 18, 2024
Replies: 1 comment
-
@BrytonLee yes, but remember that stdout is not thread-safe - you need to implement some locking for writing to stdout. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BrytonLee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@BrytonLee yes, but remember that stdout is not thread-safe - you need to implement some locking for writing to stdout.