You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
comm: hold the stdin lock for the whole duration of the program
Being a single-threaded program, there's no benefit in having comm
obtain a lock every time it needs to read a line. This commit removes
the unnecessary overhead by obtaining a lock at the start of the program
and keeping it for the whole duration of the program.
0 commit comments