Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3b5df1d

Browse files
authored
Fix init of thread run
1 parent 0bb3634 commit 3b5df1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎print_seq

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ int main() {
9898
pthread_mutex_init(&mtx, NULL);
9999
pthread_cond_init(&cond, NULL);
100100

101-
thread_run = 2;
101+
thread_run = 1;
102102

103103
rc = pthread_create(&odd_thread, NULL, odd_printer, (void *)&range);
104104
if (rc != 0) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /