PDA

View Full Version : System Call:set_thread_area


Vinay Kumar
29th September 2006, 07:51 AM
Hi,

The system call set_thread_area is used inall the c programs i have compiled on the fedora core 5 installation. The call was used even for a small program such as :

int main()
{
return 0;
}

The program never use any thread, but the set_thread_area call is used if i strace the executable.

Can anyone answer to my query?

thanks,
vinay

baappi
29th September 2006, 08:29 AM
Hello Vinay,

By default every program is single threaded ie when you execute a program(not creating any thread explicitily) the RTE starts a thread (Mian Thread) . This is the thread where you can create other theads for multi-threaed application .