ITeye博客

Rethink the sync

willpower · 2007-03-21 12:57 · Everything on Distributed 分布式系统 · Markdown

We know the traditional I/O models: sync and async, however, some researchers from Michigan University figures out a new model, they call it "external sync"

The difference between e-sync and sync is shown below:

fig1

This figure shows the behavior of a sample application that makes two file system modifications, then displays output to an external device. The diagram on the left shows how the application executes when its file I/O is synchronous; the diagram on the right shows how it executes when its file I/O is externally synchronous.

External synchrony preserves the simplicity and reliability of a synchronous I/O interface, yet performs approximately as well as an asynchronous I/O interface.

评论(2)

  1. #2 楼 · willpower · 2007-03-23 10:15

    The idea behind is e-sync IO does not block the application, so background operations can be committed in batch. So, the general performance is improved. This is also different from traditional async, for which user get responce even the background operations have not finished. However, for e-sync, user would not get responce until the operations have been flush.

  2. #1 楼 · specsence · 2007-03-22 17:58

    I am not very clear about the two diagram. is it smiler as AJAX?intr

评论功能维护中,当前仅展示历史评论。