...
Code Block | ||
---|---|---|
| ||
int main(int argc, char* argv[]){
pthread_t thread;
pthread_create(&thread, NULL, func, 0);
pthread_kill(thread, SIGKILL);
/* May run a few more lines until the signal kills the process */
return 0;
}
void func(void *foo){
/* Execution of thread */
}
|
...