What is the difference between the functions read() and pread() in unix?
When choosing between them, what points should I take into considerati
read() starts reading the requested number of bytes from the current file offset whereas with pread(), you can specify the offset. This is useful in situations where one set of functions is reading through a file sequentially using the file pointer while another set is accessing specific data at the same time.