Linux uses a time-sharing algorithm _______
1. to pair preemptive scheduling between multiple processes
2.for tasks where absolute priorities are more important than fairness
3.all of the mentioned
4. none of the mentioned
The time required to create a new thread in an existing process is _____
1.greater than the time required to create a new process
2.less than the time required to create a new process
3.equal to the time required to create a new process
4. none of the mentioned
What is Linux?
1.single user, single tasking
2.single user, multitasking
3. multi user, single tasking
4. multi user, multitasking
When the event for which a thread is blocked occurs?
1.thread moves to the ready queue
2.thread remains blocked
3. thread completes
4. a new thread is provided
Which binary format is supported by linux?
1.a.out
2.elf
3. both a.out and ELF
4.None of the mentioned
Which of the following is FALSE?
1.Context switch time is longer for kernel level threads than for user level threads
2.User level threads do not need any hardware support
3.Related kernel level threads can be scheduled on different processors in a multiprocessor system
4.Blocking one kernel level thread blocks all other related threads
Which one of the following is not a valid state of a thread?
1.running
2.parsing
3.ready
4.blocked
Which one of the following linux file system does not support journaling feature?
1. ext2
2.ext3
3. ext4
4.None of the mentioned
A fork system call will fail if _______
1.the previously executed statement is also a fork call
2.the limit on the maximum number of processes in the system would be executed
3.the limit on the minimum number of processes that can be under execution by a single user would be executed
4.All of the Mentioned
A heavy weight process ______
1.has multiple threads of execution
2. has a single thread of execution
3.can have multiple or a single thread for execution
4.None of the mentioned
A process having multiple threads of control implies ____
1.it can do more than one task at a time
2.it can do only one task at a time, but much faster
3.it has to use only one thread per process
4.none of the mentioned
A thread is also called _______
1.Light Weight Process(LWP)
2.Light Weight Process(LWP)
3. Process
4.None of the mentioned
A thread shares its resources(like data section, code section, open files, signals) with ______
1. other process similar to the one that the thread belongs to
2.other threads that belong to similar processes
3.other threads that belong to the same process
4.All of the Mentioned
Because the kernel thread management is done by the Operating System itself _____
1. kernel threads are faster to create than user threads
2.kernel threads are slower to create than user threads
3.kernel threads are easier to manage as well as create then user threads
4.None of the mentioned
If a kernel thread performs a blocking system call, _______
1.the kernel can schedule another thread in the application for execution
2.the kernel cannot schedule another thread in the same application for execution
3. the kernel must schedule another thread of a different application for execution
4. the kernel must schedule another thread of the same application on a different processor
If a process does not call exec after forking ______
1.the program specified in the parameter to exec will replace the entire process
2.all the threads should be duplicated
3.all the threads should not be duplicated
4.None of the mentioned
If a thread invokes the exec system call _____
1. only the exec executes as a separate process
2.the program specified in the parameter to exec will replace the entire process
3.the exec is ignored as it is invoked by a thread
4.None of the mentioned
If exec is called immediately after forking ______
1.the program specified in the parameter to exec will replace the entire process
2.all the threads will be duplicated
3.all the threads may be duplicated
4.None of the mentioned
If one thread opens a file with read privileges then _____
1.other threads in the another process can also read from that file
2.other threads in the same process can also read from that file
3.any other thread can not read from that file
4.All of the Mentioned
If the kernel is single threaded, then any user level thread performing a blocking system call will _______
1.cause the entire process to run along with the other threads
2.cause the thread to block with the other threads running
3.cause the entire process to block even if the other threads are available to run
4.none of the mentioned
In the Many to Many model true concurrency cannot be gained because ____
1.the kernel can schedule only one thread at a time
2.there are too many threads to handle
3.t is hard to map threads with each other
4.None of the mentioned
In the Many to Many models when a thread performs a blocking system call ______
1.other threads are strictly prohibited from running
2.other threads are allowed to run
3.other threads only from other processes are allowed to run
4.None of the mentioned
In the Many to One model, if a thread makes a blocking system call ______
1. the entire process will be blocked
2. a part of the process will stay blocked, with the rest running
3.the entire process will run
4.None of the mentioned
In the Many to One model, multiple threads are unable to run in parallel on multiprocessors because of _____
1. only one thread can access the kernel at a time
2.many user threads have access to just one kernel thread
3.there is only one kernel thread
4.None of the mentioned
In the One to One model when a thread makes a blocking system call ________
1.other threads are strictly prohibited from running
2.other threads are allowed to run
3.other threads only from other processes are allowed to run
4.None of the mentioned
Multithreading an interactive program will increase responsiveness to the user by _______
1.continuing to run even if a part of it is blocked
2. waiting for one part to finish before the other begins
3.asking the user to decide the order of multithreading
4.None of the mentioned
Multithreading on a multi – CPU machine ______
1.decreases concurrency
2.increases concurrency
3. doesn’t affect the concurrency
4.can increase or decrease the concurrency
RAID level 1 refers to ______
1.disk arrays with striping
2.disk mirroring
3.both disk arrays with striping and disk mirroring
4.none of the mentioned
Resource sharing helps ________
1.share the memory and resources of the process to which the threads belong
2.an application have several different threads of activity all within the same address space
3.reduce the address space that a process could potentially use
4.All of the Mentioned
Standard set of functions through which interacts with kernel is defined by _______
1. system libraries
2.kernel code
3. compilers
4.utility programs
Termination of the process terminates ______
1. first thread of the process
2.first two threads of the process
3.all threads within the process
4.no thread within the process
The first linux kernel which supports the SMP hardware?
1. linux 0.1
2. linux 1.0
3. linux 1.2
4.linux 2.0
The first process launched by the linux kernel is ______
1. init process
2.Zombie process
3.batch process
4.boot process
The jacketing technique is used to _______
1.convert a blocking system call into non blocking system call
2.create a new thread
3.communicate between threads
4. terminate a thread
The kernel is _______ of user threads.
1. a part of
2.the creator of
3. unaware of
4.aware of
The model in which one kernel thread is mapped to many user-level threads is called ______
1.Many to One model
2.One to Many model
3.Many to Many model
4.One to One model
The model in which one user-level thread is mapped to many kernel level threads is called ________
1. Many to One model
2.One to Many model
3.Many to Many model
4.One to One model
The One to One model allows ______
1.increased concurrency
2.decreased concurrency
3.increased or decreased concurrency
4.concurrency equivalent to other models
The register context and stacks of a thread are deallocated when the thread?
1. terminates
2. blocks
3.unblocks
4.spawns
The replacement of a bad block generally is not totally automatic because ______
1.data in bad block can not be replaced
2.data in bad block is usually lost
3.bad block does not contain any data
4.none of the mentioned
Thread synchronization is required because ______
1.all threads of a process share the same address space
2. all threads of a process share the same global variables
3. all threads of a process can share the same files
4.All of the mentioned
What will happen during the recovery from a failure?
1. each pair of physical block is examined
2. specified pair of physical block is examined
3.first pair of physical block is examined
4.None of the mentioned
When is the Many to One model at an advantage?
1.When the program does not need multithreading
2.When the program has to be multi-threaded
3. When there is a single processor
4.None of the mentioned
When we write something on the disk, which one of the following can not happen?
1. successful completion
2.partial failure
3. total failure
4. none of the mentioned
Which desktop environment is not used in any linux distribution?
1.gnome
2.kde
3. unity
4.None of the mentioned
Which of the following calls never returns an error?
1. getpid
2.fork
3.ioctl
4.Open
Which of the following is the drawback of the One to One Model?
1. increased concurrency provided by this model
2.decreased concurrency provided by this model
3.creating so many threads at once can crash the system
4.creating a user thread requires creating the corresponding kernel thread
Which of the following system calls does not return control to the calling point, on termination?
1.fork
2.exec
3.ioctl
4.longjmp
Which of the following system calls transforms executable binary file into a process?
1.fork
2.exec
3.ioctl
4.longjmp
Which one of the following bootloader is not used by linux?
1.GRUB
2. LILO
3.NTLDR
4.None of the mentioned
Which one of the following is not a linux distribution?
1.debian
2.gentoo
3.open SUSE
4. multics
Which one of the following is not shared by threads?
1.program counter
2.stack
3.both program counter and stack
4.None of the mentioned