How to print pthread_self?

Asked by Lassa

Report
in progress 81
6 Answers 147 views

Leave a reply to Lassa : print pthread_self


Answers ( 6 )

  1. From within the function FooBar, print the Name that was passed inside (...) arg)->Name ); 4. ((struct Shared*)arg)->Value = 2 * pthread_self(); 5. pthread_exit
    Read More

    Ratings : 61 %   

      
  2. 13 Answers. write a program with 2 threads. one thread should print even and other should print odd numbers in sequence. how would you make it SMP safe?
    Read More

    Ratings : 28 %   

      
  3. If you want to set CPU affinity per QThread [doc.qt.nokia], Qt does not provide an API do this, and you will need to use native platform calls.
    Read More

    Ratings : 19 %   

      
  4. In linux c program, how to print thread id of a thread created by pthread library? for ex: we can get pid of a process by getpid()
    Read More

    Ratings : 72 %   

      
  5. In the part I of the Linux Threads series, we discussed various aspects related to threads in Linux. In this article we will focus on how a thread is created
    Read More

    Ratings : 48 %