Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - h.3
Search - h.3 - List
封装win32和POSIX线程API。从而能够使得多线程程序能够方便在windows和linux平台移植。 压缩包中有两个文件:Thread.h和testMain.cpp。其中Thread.h是线程封装的实现,testMain.cpp是测试代码文件。 windows下使用VC7.0编译通过。Linux下用gcc3.2.3编译通过。 该版本只支持下列API: 线程创建,清除。 互斥量操作。 等待其他线程。-Packaging and POSIX threads API. In order to make multi-threaded processes to facilitate the Windows and Linux platforms. Compressed are two documents : Thread.h and testMain.cpp. Which is threaded Packaging Thread.h the realization testMain.cpp is testing the code document. Windows use VC7.0 compile. Linux use gcc3.2.3 compile. This version only supports the following API : threads created to remove. Exclusive volume operation. Wait for the other threads.
Date : 2008-10-13 Size : 2.62kb User : 曹京

#include <string.h> #include <fstream.h> #include <stdio.h> #include <stdlib.h> #define FINISH 0 //完成状态 #define RUNNING 1 //运行状态 #define READY 2 //就绪状态 #define WAITIO 3 //io等待状态 #define WAITREAD 4//读写等待状态 #define WAITOUT 5//中断等待状态
Date : 2008-10-13 Size : 2.34kb User : 鹰隼

#include <string.h> #include <fstream.h> #include <stdio.h> #include <stdlib.h> #define FINISH 0 //完成状态 #define RUNNING 1 //运行状态 #define READY 2 //就绪状态 #define WAITIO 3 //io等待状态 #define WAITREAD 4//读写等待状态 #define WAITOUT 5//中断等待状态 -# Include <string.h># Include <fstream.h># Include <stdio.h># Include <stdlib.h># Define FINISH 0// completion status# Define RUNNING 1// operation status# define READY 2// ready status# define WAITIO 3// io wait state# define WAITREAD 4// read and write wait state# define WAITOUT 5// interrupt wait state
Date : 2025-12-16 Size : 2kb User : 鹰隼

SSiFun通过设计一个通用、简便的数据接口,来封装Windows进程间函数调用的技术实现细节,提高开发效率。一个Dll同时适用于调用者和服务提供者(即客户端和服务端),避免了服务端、客户端的协议兼容和版本问题。SSiFun提供标准WIN32 API接口,适用于各类编程语言(包括VC++、Delphi、VB、C#等)调用。SSiFun.dll 采用VC++ 7.1(VS2003)编制,提供了 SSiFun.dll、SSiFun.lib、SSiFun.h,可直接加入到VC++项目中调用。 支持的操作系统包括: WindowsNT4.0/2000/XP/2003/Vista,所有的基于Windows NT架构的操作系统,包括服务器版本和工作站版本。 -err
Date : 2025-12-16 Size : 716kb User : 李群巍

1、对于如下给定的一组磁盘访问进行调度: 请求服务到达 A B C D E F G H I J K 访问的磁道号 30 50 100 180 20 90 150 70 80 10 160 2、要求分别采用先来先服务、最短寻道优先以及电梯调度方法进行调度。 3、要求给出每种算法中磁盘访问的顺序,计算出平均移动道数。 4、假定当前读写头在90号,向磁道号增加的方向移动。-1, for a given set of as disk access scheduling: Request service ABCDEFGHIJK access track to reach No. 30 50 100 1,802,090,150,708,010,160 2, the requests were a first-come, first served, shortest seek first, and elevator scheduling method of scheduling. 3, the algorithm required to give each disk access order to calculate the average number of mobile channel. 4, assuming that the current read-write head 90 to move the direction of increasing track number.
Date : 2025-12-16 Size : 1.16mb User : 刘莹

DL : 0
功能是在进程间完成文件的传送。一个发送进程把两个文件送入消息队列,另外两个接收进程分别从消息队列各自接收一个文件。该例由3个源程序文件组成:user.h 是共用的头部文件,filesnd.c的功能是把两个文件读出并发送到消息队列,filercv.c的功能是从消息队列读取文件。-Function is to complete the file transfer between processes. A sending process the two files into the message queue, the other two receiving process from the message queue to receive a file. This example, the composition consists of three source files: user.h shared head file, the filesnd.c the function is to read the two documents sent to the message queue, the function is filercv.c read the file from the message queue .
Date : 2025-12-16 Size : 10kb User : Jiang
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.