首页> 外国专利> Method and system for protecting shared code and data in a multitasking operating system

Method and system for protecting shared code and data in a multitasking operating system

机译:在多任务操作系统中保护共享代码和数据的方法和系统

摘要

A method and system for protecting shared code and data, in particular, shared system code and data, in a multitasking operating system are provided. The operating system includes a cooperative subsystem and a preemptive subsystem. The cooperative subsystem includes shared system code and data. The method and system include a synchronization mechanism for controlling access to the shared system code and data by threads. Ownership of the synchronization mechanism must be requested and obtained before a cooperatively scheduled thread can execute in the cooperative subsystem. Additionally, ownership of the synchronization mechanism must be requested and obtained before a preemptively scheduled thread can execute the shared system code in the cooperative subsystem. If the synchronization mechanism is already owned, the requesting thread is blocked until ownership is released. Otherwise, the requesting thread is granted ownership. Since no other thread can obtain ownership of the synchronization mechanism while one thread owns the synchronization mechanism, the shared system code and data in the cooperative subsystem is protected.
机译:提供了一种用于在多任务操作系统中保护共享代码和数据,特别是共享系统代码和数据的方法和系统。该操作系统包括一个协作子系统和一个抢占子系统。协作子系统包括共享的系统代码和数据。该方法和系统包括用于控制线程对共享系统代码和数据的访问的同步机制。在协作调度的线程可以在协作子系统中执行之前,必须请求并获得同步机制的所有权。此外,必须先获取并获得同步机制的所有权,然后才能在抢先调度的线程可以在协作子系统中执行共享的系统代码。如果同步机制已被拥有,则请求线程将被阻塞直到所有权被释放。否则,将向请求线程授予所有权。由于当一个线程拥有同步机制时,没有其他线程可以获取同步机制的所有权,因此,保护​​了协作子系统中的共享系统代码和数据。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号