From c9667cc796f96017951f8ac90978846918c184d7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 8 Dec 2006 14:52:37 +0000 Subject: [PATCH] Note that struct file, struct dir are per-thread. From Godmar Back. --- doc/filesys.texi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/filesys.texi b/doc/filesys.texi index 1605b2d..f245daa 100644 --- a/doc/filesys.texi +++ b/doc/filesys.texi @@ -394,6 +394,10 @@ if B's data is all nonzero bytes, A is not allowed to see any zeros. Operations on different directories should take place concurrently. Operations on the same directory may wait for one another. +Keep in mind that only data shared by multiple threads needs to be +synchronized. In the base file system, @struct{file} and @struct{dir} +are accessed only by a single thread. + @node Project 4 FAQ @section FAQ -- 2.30.2