68. Which of the following abstractions is the fundamental schedulable entity on a solaris machine?
Answer
Correct Answer:
Interrupt handler.
Note: This Question is unanswered, help us to find answer for this one
69. Which of the following interfaces can be used by a driver interface routine to copy data from and to the user address space?
Note: This Question is unanswered, help us to find answer for this one
70. Which of the following structures describes the user initiated IOs?
Answer
Correct Answer:
struct uio
Note: This Question is unanswered, help us to find answer for this one
71. Which of the following structures keeps track of the positional offset within the file where the next IO is to be performed?
Answer
Correct Answer:
struct file
Note: This Question is unanswered, help us to find answer for this one
72.
On a solaris system with no special kmem_flag settings,
what happens when a thread running buggy code frees a buffer twice.
Answer
Correct Answer:
The second free is harmless as the kernel knows that the memory has already been freed.
Note: This Question is unanswered, help us to find answer for this one
73. Which of the following commands can be used to examine and delete kernel breakpoints?
Answer
Correct Answer:
::break, ::delete
Note: This Question is unanswered, help us to find answer for this one
74.
What do the following mdb commands do?
::allocdby
::freedby
Answer
Correct Answer:
They are used to print the log of transactions by a particular thread.
Note: This Question is unanswered, help us to find answer for this one
75.
Which of the following calls fits in at 'statement xxx'
to produce correct results in the code snippet below?
mutex_enter(mutex pointer);
while (condition is false) {
cv_wait(cv pointer, mutex pointer);
}
statement xxx;
mutex_exit(mutex pointer);
Answer
Correct Answer:
nothing needs to be done.
Note: This Question is unanswered, help us to find answer for this one
76. What does the vfs_vnodecovered field of a vfs structure indicate?
Answer
Correct Answer:
It points to the root inode of the filesystem.
Note: This Question is unanswered, help us to find answer for this one
77. Which of the following sequences correctly builds the loadable module 'mymod'?
Answer
Correct Answer:
cc -D_KERNEL -o mymod.o; ld -r -o mymod mymod.o
Note: This Question is unanswered, help us to find answer for this one
78. What is the significance of setting the kernel global variable 'kmem_flags' to '0xf'?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
79. In which of the following contexts does the solaris kernel handle interrupts?
Answer
Correct Answer:
In a kernel thread context.
Note: This Question is unanswered, help us to find answer for this one
80. Which of the following is pageable?
Answer
Correct Answer:
kernel stack.
user addresses.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
81. Which of the following components is responsible for speeding up file paths to inode lookups?
Answer
Correct Answer:
Page Cache
Note: This Question is unanswered, help us to find answer for this one
82. Which of the following interfaces can be used to avert a thundering herd of waiters?
Answer
Correct Answer:
cv_signal
Note: This Question is unanswered, help us to find answer for this one
83. Which of the following interfaces needs to be implemented for a filesystem to support swap files?
Answer
Correct Answer:
VOP_GETPAGE and VOP_PUTPAGE
Note: This Question is unanswered, help us to find answer for this one
84. The OS guarantees that a thread blocked on a cv via a cv_wait call does not wakeup prematurely and hence does not need to re-check for the reason for blocking.
Note: This Question is unanswered, help us to find answer for this one
85. Which of the following interfaces is used by the driver to signal the completion of an IO initiated by a strategy call?
Answer
Correct Answer:
cv_broadcast
Note: This Question is unanswered, help us to find answer for this one
86. Which of the following commands prints out the kernel device tree?
Note: This Question is unanswered, help us to find answer for this one
87. What does the v_vfsmountedhere field of a vnode indicate?
Answer
Correct Answer:
It points to the root vnode of the filesystem to which the vnode belongs.
Note: This Question is unanswered, help us to find answer for this one
88. What does the VOP_INACTIVE interface do?
Answer
Correct Answer:
It drops the reference count on a vnode and if required it deletes all data associated with a vnode.
Note: This Question is unanswered, help us to find answer for this one
89. Which of the following interfaces are invoked by the OS to flush all data belonging to a filesystem to a disk?
Note: This Question is unanswered, help us to find answer for this one
90. What are the basic mutex operations supported by the solaris operating system?
Answer
Correct Answer:
Initializing and deinitializing the mutex
Reader writer locking semantics on the mutex
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
91. How many LWPs must a process have to maximize its parallelism?
Answer
Correct Answer:
It should be the same as the number of processors.
Note: This Question is unanswered, help us to find answer for this one
92. Which of the following cache entries need to be purged/invalidated if a file is deleted?
Answer
Correct Answer:
DNLC
Page Cache
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Kernel Programming - Solaris MCQs | Topic-wise