Operating System Interview Question and Answers
16. |
What are java threads? |
|
- Java is one of the small number of languages that support at the language level for the creation and management of threads.
- However, because threads are managed by the java virtual machine (JVM), not by a user-level library or kernel, it is difficult to classify Java threads as either user or kernel level.
|
17. |
What are types of threads? |
|
- User thread
- Kernel thread
|
18. |
What is a semaphore? |
|
- It is a synchronization tool used to solve complex critical section problems.
- A semaphore is an integer variable that, apart from initialization, is accessed only through two standard atomic operations: Wait and Signal.
|
19. |
What is a deadlock? |
|
- Deadlock is a situation where a group of processes are all blocked and none of them can become unblocked until one of the other becomes unblocked.
- The simplest deadlock is two processes each of which is waiting for a message from the other.
|
20. |
What is cache memory? |
|
Cache memory is random access memory (RAM) that a computer microprocessor can access more quickly than it can access regular RAM. As the microprocessor processes data, it looks first in the cache memory and if it finds the data there (from a previous reading of data), it does not have to do the more time–consuming reading of data. |
123456789101112
Page 4 of 12