#include&lt;stdio.h&gt;   #include&lt;pthread.h&gt;   #include&lt;semaphore.h&gt;&nbsp;   sem_t st;   void *fun_t&#40;void *arg&#41;;   void *fun_t&#40;void *arg&#41;   &#123;       pthread_exit&#40;&quot;Bye&quot;&#41;;   &#125;   int main&#40;&#41;   &#123;       pthread_t pt;       void *res_t;       if&#40;pthread_create&#40;&amp;pt,NULL,fun_t,NULL&#41; == -1&#41;           perror&#40;&quot;pthread_create&quot;&#41;;       if&#40;sem_init&#40;&amp;st,1,2&#41; != 0&#41;           perror&#40;&quot;sem_init&quot;&#41;;       if&#40;pthread_join&#40;pt,&amp;res_t&#41; == -1&#41;           perror&#40;&quot;pthread_join&quot;&#41;;       if&#40;sem_destroy&#40;&amp;st&#41; != 0&#41;           perror&#40;&quot;sem_destroy&quot;&#41;;       return 0;   &#125;
A. can be used only for this process
B. can be used for any other process also
C. can be used
D. none of the mentioned
Answer:A
#include&lt;stdio.h&gt;   #include&lt;pthread.h&gt;   #include&lt;semaphore.h&gt;&nbsp;   sem_t st;   void *fun_t&#40;void *arg&#41;;   void *fun_t&#40;void *arg&#41;   &#123;       pthread_exit&#40;&quot;Bye&quot;&#41;;   &#125;   int main&#40;&#41;   &#123;       pthread_t pt;       void *res_t;       if&#40;pthread_create&#40;&amp;pt,NULL,fun_t,NULL&#41; == -1&#41;           perror&#40;&quot;pthread_create&quot;&#41;;       if&#40;sem_init&#40;&amp;st,1,2&#41; != 0&#41;           perror&#40;&quot;sem_init&quot;&#41;;       if&#40;pthread_join&#40;pt,&amp;res_t&#41; == -1&#41;           perror&#40;&quot;pthread_join&quot;&#41;;       if&#40;sem_destroy&#40;&amp;st&#41; != 0&#41;           perror&#40;&quot;sem_destroy&quot;&#41;;       return 0;   &#125;
A. can be used only for this process B. can be used for any other process also C. can be used D. none of the mentioned
Explanation:The value of second argument of sem_init() is 1.