用多线程同步方法解决读者阅览问题 1) 每个读者进入阅览室后,即时显示“Entered” 及其线程自定义标识,还同时显示阅览室共有几名顾客及其所坐的位置。 2) 至少有10个读者,每人阅览至少3秒钟。 3) 多个读者须共享操作函数代码。 2总的设计思想及系统平台、语言、工具: 设计思想:程序设定的是10个读者和5个座位,对读者进行编号,依次进入阅览室读书,为每一座位列一表目,包括座号和读者号等,读者离开时要登出,即消掉登记的信息。 系统平台:LINUX 语言:C语言 工具:vi编辑器、gcc编译器 操作系统:linux操作系统 调试工具:edit、masm、link、debug. 3数据结构与模块说明(功能与流程图) 数据结构 int count=0 //记录阅览室读者数量 sem_t full //定义阅览室座位信号量 int seat[5] //用数组表示座位 pthread_t reader[10] //定义读者线程 pthread_mutex_t mutex //定义互斥量 3.2功能说明 可以标识读者,随机为读者设置在阅览室的读书时间 可以显示阅览室读者的人数 可以显示读者所坐的位置,座位状态以及列出空座位
标签: 多线程同步
上传时间: 2016-08-10
上传用户:zsjzc
Versatile visual servoing without knowledge of true jacobian.pdf cobian matrix estimator. The Jacobian matrix estimator does not need a priori knowledge of the kinematic structure and parameters of the robot system, such as camera and link parameters. The proposed visual servoing control scheme ensures the convergence of the image-features to desired trajectories, by using the estimated Jacobian matrix, which is proved by the Lyapunov stability theory. To show the effectiveness of the proposed scheme, simulation and experimental results are presented.
标签: Versatile knowledge estimator servoing
上传时间: 2016-08-26
上传用户:大三三
本代码应用于串口通信的应用熟悉Tornado的集成开发环境,通过CS850(CPU是Motorola的Power PC 850)的SCC(Serial Communication Controller)端口在NMSI方式下实现HDLC(High Data Link Communication)协议的自环通信。
上传时间: 2014-01-19
上传用户:hullow
ADM6993F/FXFiber to Fast Ethernet Converter (TS1000 CPE Complied) The ADM6993F/FX is a single chip integrating two 10/100 Mbps MDIX TX/FX transceivers, a three-port 10/100M Ethernet L2 switch controller, and one OAM engine to meet demanding applications, including Fiber-to-Ethernet media converters, especially the fiber to the home (FTTH) media converters. The ADM6993F/FX feature set includes link pass through (LPT), TS1000 OAM frame receiving/processing/transmitting, programmable link status LED display, various loop-back modes, and one configurable MII ports for snooping/inserting OAM frame from/to 100Fx. The ADM6993FX is the environmentally friendly “green” package version.
标签: 6993 ADM Converter Ethernet
上传时间: 2014-01-01
上传用户:hebmuljb
CPU的code banking技术实例: This Zip file contains five (3) folders: FastChip Project Files * This folder contains a folder called "Bank" that should be moved into: <install_root>\FastChip\Projects Keil Project Files * These files are to be put into the directory of your choice and the project is to be opened from within Keil Hex Files * These files are the output of Keil. If you do not want to compile and link all of the code, these files can be loaded into FastChip directly
标签: This FastChip contains banking
上传时间: 2016-10-01
上传用户:a3318966
This a simple database management system. It doesn t use any other code (i.e. ODBC, ADO, etc.) and has it s own database file format. I wrote it because I found the other DBMSs code too bulky and hard to debug. It s designed for small applications and I doubt it could handle anything on a large scale. A sample program included in the .zip shows how everything works. The database project is a library project, so you ll have to compile and link with the .lib file to get everything working. Pros: - You have the source code so you know exactly what it is doing - Database files are very small - Small and fast code Cons: - Can t handle large amounts of records (more than 65000ish) - Doesn t support SQL (you have to search the database by cycling through the records and testing them against your constraints) - Each database file can only have one table.
标签: i.e. management database simple
上传时间: 2016-10-02
上传用户:851197153
This application note is used to demonstrate the use of MATCOM software (by Mathtools Corporation) to generate Dynamic Link Library files (*.dll files) that can be used with ACOLADE.
标签: Corporation application demonstrate Mathtools
上传时间: 2016-10-25
上传用户:gengxiaochao
NASM2.03汇编编译器,支持跨平台编译,可以生成,支持各种常用Link工具的目标代码文件。 支持64位汇编指令。内附原版参考文档。
上传时间: 2016-11-14
上传用户:vodssv
使用Rapi API,將在pc上的檔案透過ActiveSync傳送到mobile上。需link rapi.lib方可使用。
上传时间: 2013-12-26
上传用户:xsnjzljj
ISO/IEC13239,Information technology-Telecommunications and information exchange between systems-High level data link control(HDLC) procedures
标签: technology-Telecommunications systems-High Information information
上传时间: 2013-12-28
上传用户:zhaiyanzhong