#include #include #include static void *worker(void *p) { for (;;) { void *p = malloc(100000); free(p); } } int main() { for (int i=0; i<10; i++) pthread_create(&(pthread_t){0}, 0, worker, 0); for (;;) pause(); }