首页> 外国专利> Network file server having a message collector queue for connection and connectionless oriented protocols

Network file server having a message collector queue for connection and connectionless oriented protocols

机译:具有用于连接和面向无连接协议的消息收集器队列的网络文件服务器

摘要

There is a performance loss associated with servicing a pipe or stream for a connection oriented process by maintaining a connection between a server thread and a client for a series of messages. As a result of maintaining this connection, there is less balance; some threads work harder than others, causing a loss of performance. To solve this problem, a collector queue combines messages from the connection oriented process with messages from the other concurrent processes. The threads receive messages from the collector queue rather than individual pipes. Any idle thread can pick up a message from the collector queue. The collector queue keeps track of which pipe each message came from so that the reply of the server to each message is directed to the same pipe from which the message came from. Therefore the collector queue ensures thread balance and efficiency in servicing the messages. In the preferred implementation, each entry in the collector queue includes a message pointer and a pipe pointer. The message pointer points to allocated memory storing the message in a message buffer. The pipe pointer points to the pipe from which the message originated. The collector queue is a singly linked list. A free thread takes an entry off the collector queue, interprets the message of the entry, sends a reply, and deallocates the memory of the entry and the allocated memory storing the message in the message buffer.
机译:通过为一系列消息维护服务器线程和客户端之间的连接,与面向面向连接的过程的管道或流服务相关联的性能损失。保持这种联系的结果是,余额减少了。一些线程比其他线程更努力地工作,从而导致性能损失。为了解决此问题,收集器队列将来自面向连接的进程的消息与来自其他并发进程的消息进行组合。线程从收集器队列而不是单个管道接收消息。任何空闲线程都可以从收集器队列中接收消息。收集器队列跟踪每个消息来自哪个管道,以便服务器对每个消息的答复被定向到消息来自哪个管道。因此,收集器队列可确保线程平衡和服务消息的效率。在优选实施方式中,收集器队列中的每个条目包括消息指针和管道指针。消息指针指向将消息存储在消息缓冲区中的已分配内存。管道指针指向消息所源自的管道。收集器队列是一个单链表。空闲线程将一个条目从收集器队列中移出,解释该条目的消息,发送答复,然后取消分配该条目的内存以及分配的将消息存储在消息缓冲区中的内存。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号