-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failed: (lt_write != NULL || lt_read != NULL), function lthread_run, file lthread_sched.c, line 252. #42
Comments
static int
} |
#include <stdio.h> struct cli_info { typedef struct cli_info cli_info_t; char *reply = "HTTP/1.0 200 OK\r\nContent-length: 11\r\n\r\nHello Kannan"; int lsn_fd = 0; void
/* reply back to user */ void
} static int
} |
To run an lthread scheduler in each pthread, launch a pthread and create lthreads using lthread_create() followed by lthread_run() in each pthread.
when create more then one pthread and lthread scheduler,and use "ab -c 100 -n 10000" to test program,then "Assertion failed: (lt_write != NULL || lt_read != NULL), function lthread_run, file lthread_sched.c, line 252." occure.
But only one pthread will run ok.
The text was updated successfully, but these errors were encountered: