Вопрос по linux, c – пид для новой темы

15

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

[email protected]:~/LPI$ ./pthr_create
--------------------------------------
main thread: pid: 4845, ppid: 3335
child thread: pid: 4845, ppid: 3335

htop показывает: Screenshot of the htop application showing a list of processes.

Error: User Rate Limit Exceeded R..

Ваш Ответ

2   ответа
2

Error: User Rate Limit Exceeded

20

Error: User Rate Limit Exceededpthreads()Error: User Rate Limit Exceeded

Error: User Rate Limit ExceededError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

#include <stdio.h>
#include <syscall.h>
#include <pthread.h>

int main()
{
     pthread_t tid = pthread_self();
     int sid = syscall(SYS_gettid);
     printf("LWP id is %d\n", sid);
     printf("POSIX thread id is %d\n", tid);
     return 0;
}

Похожие вопросы