What is the essential difference between a block special file and a character special file?

Đăng Khánh

New member
What is the essential difference between a block special file and a character special file?
Answer
The name “block device” comes from the fact that the corresponding hardware typically reads and writes a whole block at a time (e.g. a sector on a hard disk). Character devices (also called character special files)
behave like pipes, serial ports, etc.Writing or reading to them is an immediate action.
 

Tìm kiếm

Back
Top