Operating System (OS) Question:

What are placement and replacement algorithms In the context of memory management?

Operating System (OS) Interview Question
Operating System (OS) Interview Question

Answer:

Placement algorithms determine where in available real-memory to load a program. Common methods are first-fit, next-fit, best-fit. Replacement algorithms are used when memory is full, and one process (or part of a process) needs to be swapped out to accommodate a new program. The replacement algorithm determines which are the partitions to be swapped out.


Previous QuestionNext Question
Tell me if you know how are the wait/signal operations for monitor different from those for semaphores?Can you please explain the difference between load-time dynamic linking and run-time dynamic linking?