pid_t gettid (void)
{
return syscall(__NR_gettid);
}
This blog gives the Linux specific information like networking, debugging and Linux internal.
Popular Posts
-
Introduction If you are a Linux enthusiast and just curious to know how the Ethernet frame is processed, how to sniff the packets even if...
-
Introduction Many times applications fails in certain scenario or crash in regression testing , This kind of problems are difficult to repr...
-
Pthread library provides the call pthread_self to get task id but this id is not the same as linux provided thread id, Linux view all the th...
-
Introduction: In the world of C++ programming, containers play a vital role in managing data efficiently. One such container is std::vector,...
Friday, November 5, 2010
Get thread Id in Linux
Pthread library provides the call pthread_self to get task id but this id is not the same as linux provided thread id, Linux view all the threads as LWP(light weight process) and identify using thread id, to get the linux thread id we need to use syscall system call, glibc doesn't provide the gettid function, so we define our own.
Subscribe to:
Post Comments (Atom)
I appreciate your efforts. really nice article !
ReplyDeletePhp projects with source code
Online examination system in php
Student management system in php
Php projects for students
Free source code for academic
Academic projects provider in nashik
Academic project free download
Very enthusiastic article, add so much useful information to me.essay rewriter birmingham
ReplyDelete