Dirty Page Writeback

When does the OS typically write dirty pages (modified memory-mapped file pages) back to disk?

A

Only when explicitly flushed with fsync()

B

Immediately on every write

C

Periodically by kernel threads, or when memory pressure occurs

D

Only when the file is closed