Toshiba interview question

Explain Paging and Semaphore with an example.