【问题标题】:fsevents-daemon vs FSEvents APIfsevents-daemon vs FSEvents API
【发布时间】:2012-09-13 19:54:50
【问题描述】:

我正在查看有关 FSEvents 的苹果开发者文档,但后来在 Dropbox 论坛中,我发现了这个 https://forums.dropbox.com/topic.php?id=20771

“我相信人们不会直接使用 fsevents-daemon,而是会使用 FSEvents API....”

fsvents-daemon 和 FSEvents API 有什么区别。我想监视 Mac OS 中的文件系统更改,这对我来说是有效的解决方案吗? fseventsd 和 dbfseventsd(Dropbox's) 有什么区别。

【问题讨论】:

    标签: macos cocoa fsevents


    【解决方案1】:

    FSEvents 守护进程 - 您自己的守护进程读取 /dev/fsevents 以获取文件系统通知。 FSEvents API - Mac OS X 的 fseventsd 进程将读取 /dev/fsevents 并为您提供文件系统事件通知。

    运行您的 FSEvents 守护程序将是最好的,因为它来自内核空间,并且比来自用户空间的 FSEvents API 更快。使用具有大量目录层次结构的 FSEvents API 也会消耗内存。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-17
      • 1970-01-01
      • 2023-02-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-04
      相关资源
      最近更新 更多