upstart 使用的脚本文件的工作方式类似与传统的 rc init 文件,它们是基于异步事件自发操作的。
The script files for upstart work similar to the traditional rc init files, except that they operate autonomously based on asynchronous events.
清单2显示了经过修改的清单1代码,其中使用了一个小小的异步调用(应用程序代码仅仅等待操作完成,而不进行任何有用的工作)。
Listing 2 shows the Listing 1 code modified to use a trivial asynchronous call (trivial in that the application code just waits for the operation to complete rather than doing anything useful).
它们异步运行,并使工作空间阻止了其他操作对资源修改的妨碍。
They run asynchronously and tell the workspace to prevent other operations from interfering with the resource modification.
应用推荐