From: Ben Pfaff Date: Fri, 8 Dec 2006 14:52:37 +0000 (+0000) Subject: Note that struct file, struct dir are per-thread. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07feb09f59a8ab41af3043c16c993d89f9aa91fc;p=pintos-anon Note that struct file, struct dir are per-thread. From Godmar Back. --- 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