arslanaslam007 / IT_Material

Here You will find Questions Related to Programming Interview
0 stars 0 forks source link

Operating System #6

Open arslanaslam007 opened 5 years ago

arslanaslam007 commented 5 years ago

Top Short Points

Basic https://github.com/arslanaslam007/Interview/issues/6#issuecomment-464440991 Process https://github.com/arslanaslam007/Interview/issues/6#issuecomment-464441009 Thread https://github.com/arslanaslam007/Interview/issues/6#issuecomment-464441026

arslanaslam007 commented 5 years ago

Basic

  1. JVM 10. Why linux files not run on windows 11. Give any example of deadlock? Give technique to prevent

What is mutex ?

Qs5: What is semaphore ? Difference between mutex and semaphore and monitor and locks?

Qs6: What is a deadlock ?

Qs7: Assume the scenario, you are working in an organisation and computers are using printers. Which data structure you use to implement that and Write code to check that deadlock occur or not ?

Qs8: What is Starvation ? How we can save from this ?

Qs9: What is FCFS, Round Robin ?

Qs10: What is pre-emptive and non-preemptive.

Qs11: What is Race Condition ?

Qs12: What is Critical Region ?

Qs13: Do you know about PCB ?

Qs14: Is process and thread share (heap, stack, registers or part of them)

1.What are interrupts?

  1. Types of interrupts?
  2. Difference between a thread a process and a program ?
  3. How DOes OS manage the Tasks?
  4. What is Round Robin?
  5. What is Thrashing? 7.Page Fault?
  6. Pagination ? Segmentation?
  7. Can Parent thread Create CHild threads?
  8. Is the memory of threads shared or not ?
  9. What does Threads share?
  10. Why do we say Threads are light weight and processes are heavy weight?

What is 32 & 64bit architecture? Why we move toward 64 bit? what is system bus? why we move toward 64 bit not any hardware solutions? size of system bus?? why 32-bit support only 4gb ram?

Context Switching

arslanaslam007 commented 5 years ago

Process

Situation in which Process will be created ?

arslanaslam007 commented 5 years ago

Thread

Situation in which Threads will be created ?

b) States of Threads ? Please draw a flow diagram of thread states ? 1) Kernal level threads and user level threads. 2) Mapping of user level threads on kernal level threads.

multi threading , multi processing and multi tasking role of core in processers