81. Which one of the following string will print first by this program?
#include<stdio.h>
#include<pthread.h>
void *fun_t(void *arg);
void *fun_t(void *arg)
{
printf("Example\n");
pthread_exit("Bye");
}
int main()
{
pthread_t pt;
void *res_t;
if(pthread_create(&pt,NULL,fun_t,NULL) != 0)
perror("pthread_create");
printf("Linux\n");
if(pthread_join(pt,&res_t) != 0)
perror("pthread_join");
return 0;
}
#include<stdio.h>
#include<pthread.h>
void *fun_t(void *arg);
void *fun_t(void *arg)
{
printf("Example\n");
pthread_exit("Bye");
}
int main()
{
pthread_t pt;
void *res_t;
if(pthread_create(&pt,NULL,fun_t,NULL) != 0)
perror("pthread_create");
printf("Linux\n");
if(pthread_join(pt,&res_t) != 0)
perror("pthread_join");
return 0;
}
82. The preprocessor creates the file with extension
83. System V IPC common attributes are
84. Which option of make command print the commands that would be executed, but do not execute them?
85. we can change the priority of a running process using
86. What is the output of the below code?
void exit_handler1();
void exit_handler2();
int main()
{
int pid;
atexit(exit_handler1);
atexit(exit_handler2);
pid = fork();
if(pid == 0)
{
_exit(0);
}
else
{
sleep(2);
exit(0);
}
return 0;
}
void exit_handler1();
void exit_handler2();
int main()
{
int pid;
atexit(exit_handler1);
atexit(exit_handler2);
pid = fork();
if(pid == 0)
{
_exit(0);
}
else
{
sleep(2);
exit(0);
}
return 0;
}
87. Functions improves the shell's programmability significantly, because
88. ILP32 stands for
89. Which one of the following contains various bits of information about the state of power management?
90. To put the breakpoint at the current line . . . . . . . . command can be used?
Read More Section(Linux)
Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.