mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-12 00:19:31 +08:00
21 lines
298 B
C
21 lines
298 B
C
#include <pthread.h>
|
|
#include <unistd.h>
|
|
|
|
static void *th(void *v)
|
|
{
|
|
sleep(1);
|
|
pthread_exit(0);
|
|
}
|
|
|
|
int main()
|
|
{
|
|
pthread_t a;
|
|
|
|
pthread_create(&a, NULL, th, NULL);
|
|
pthread_create(&a, NULL, th, NULL);
|
|
pthread_create(&a, NULL, th, NULL);
|
|
pthread_create(&a, NULL, th, NULL);
|
|
|
|
pthread_exit(0);
|
|
}
|