简体   繁体   English

文件系统领域中的单线程或多线程概念是什么?

[英]What is single or multi thread concept in area of file system?

As known, the gingerbread is going to adopt ext4 to replace the YAFFS. 众所周知,姜饼将采用ext4代替YAFFS。 The reason seems to be that YAFFS is single-threaded . 原因似乎是YAFFS是单线程的 Will someone explain what does "single-threaded" mean in the area of file system? 有人会解释“单线程”在文件系统领域是什么意思吗? So ext4 is multi-threaded? 那么ext4是多线程的吗? From what aspect? 从哪方面来看?

thanks. 谢谢。

Merlyn's comment was the right one. 梅林的评论是正确的。 Per that document: 根据该文件:

YAFFS is locked on a per-partition basis at a high level. YAFFS在每个分区上都处于较高级别。 This is simpler than tracking lower-level locking. 这比跟踪较低级别的锁定更简单。 Yaffs Direct Interface uses a single lock for all partitions. Yaffs Direct Interface对所有分区使用单个锁。

IOW, only one thread can write to the whole partition at once. IOW,只有一个线程可以一次写入整个分区。

Most Linux filesystems, like ext4, allow multiple threads to write at once (though file-level locks may serialize access to individual files). 大多数Linux文件系统(例如ext4)允许多个线程一次写入(尽管文件级锁定可能会序列化对单个文件的访问)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM