首页>
外国专利>
Portable, resource sharing file server using co-routines
Portable, resource sharing file server using co-routines
展开▼
机译:使用协同例程的便携式资源共享文件服务器
展开▼
页面导航
摘要
著录项
相似文献
摘要
Disclosed is a resource sharing system having a host computer (102) and a plurality of client computers (106, 108, 110) connected by a Local Area Network (LAN) (104). Resource sharing software, located in the host (102), is comprised of a supervisor process (304), a spooler process, and a plurality of session worker processes (310, 312). The supervisor (304) receives an initial call request from a client, and creates a session worker (310) to handle all subsequent requests from that particular client. Each client may transmit several requests without waiting for a response from the session worker for each individual request, therefore, each session worker may be processing several client requests concurrently. Each session worker creates a plurality of co-routines (320, 322, 324), one for each request, which operate concurrently to provide a high-performance response to the network. Co-routines share the session worker stack (900), as well as all other memory areas in the session worker. Co-routines are not time-sliced -- they execute until they complete a request, or until they are blocked by the need to wait on an unavailable resource. When complete, or when blocked, a co-routine gives up the processor to the next co-routine ready to perform work. Because a co-routine is never interrupted by another co-routine, there is no competition for resources, and no need for critical sections of software. The co-routine software is divided into multiple levels, with all levels above level zero being written in a high level language. Therefore, conversion to a different processor only requires conversion of level zero routines. Each session worker (310, 312) is dedicated to one and only one client, so the session worker need not provide any file protection between client files, and can rely on the underlying host operating system for such file protection.
展开▼