-
MAC oSC下cocoa framwork 编程示例程序,基于Xcode
MAC oSC下cocoa framwork 编程示例程序,基于Xcode-MAC oSC programming examples under cocoa framwork procedures, based on Xcode
- 2023-08-02 01:45:04下载
- 积分:1
-
操作系统兔子吃草
#include "stdafx.h"
#include
#include
#include
/*信号量的定义,它是负责协调各个线程, 以保证它们能够正确、合理的使用公共资源。 用于控制进程间的同步与互斥*/
typedef HANDLE Semaphore;
Semaphore g_semBuffer,g_semGlass, g_mutex; //mutex 为互斥锁
// 利用 Windows 下的 API 函数(视窗操作系统应用程序接口)来定义 P、V 操作
#define P(S) WaitForSingleObject(S,INFINITE)
#define V(S) ReleaseSemaphore(S,1,NULL)
#define rate 1000
#define CONSUMER_NUM 4 // 消费者个数
#define PRODUCER_NUM 4 // 生产者个数
#define BUFFER_NUM 4 // 缓冲区个数
char *thing[4]={"glass1","glass2","glass3","glass4"};
//公共的队列缓冲区
struct Buffer
{
int product[BUFFER_NUM];
int front,rear;
}g_buf;
//兔子线程
DWORD WINAPI Rabbit(LPVOID para)
{
int i =*(int*)para; //第 i 只小白兔&
- 2022-05-23 06:18:02下载
- 积分:1
-
一个非常全面的开发包。包括实模式中断,内存和磁盘处理
一个非常全面的开发包。包括实模式中断,内存和磁盘处理-A very comprehensive development package. Including the real-mode interrupts, memory and disk processing
- 2023-05-27 03:20:03下载
- 积分:1
-
此文档提供了一些IBM大型机操作系统AIX的命令,对于AIX入门来说是有一定帮助的。...
此文档提供了一些IBM大型机操作系统AIX的命令,对于AIX入门来说是有一定帮助的。-This document provides a number of IBM mainframe operating system command AIX for AIX is a certain entry help.
- 2022-06-30 04:46:40下载
- 积分:1
-
asp.net+ access menu without refresh using a simple three
asp.net + access 无刷新三级联动菜单使用简单 方便 容易学习-asp.net+ access menu without refresh using a simple three-linkage will find it easier to learn
- 2022-01-31 18:20:56下载
- 积分:1
-
operating system in the banker's algorithm below LINUX environment simulatio...
操作系统中的银行家算法在LINUX环境下面进行模拟.-operating system in the banker"s algorithm below LINUX environment simulation.
- 2022-04-08 15:00:00下载
- 积分:1
-
This is a shell program to simulate the system under unix. Can be achieved under...
这是一个shell程序,模拟unix系统之下的。可以实现unix下的很多命令-This is a shell program to simulate the system under unix. Can be achieved under a lot of unix commands
- 2022-07-01 10:50:54下载
- 积分:1
-
程序FIFO美国努力一起研究,哦
fifo的程序 大家努力一起研究哦-procedure fifo U.S. efforts to come together to study, oh
- 2023-06-05 12:55:04下载
- 积分:1
-
excel vba 实例源代码e xcel vba 实例源代码excel vba 实例源代码
excel vba 实例源代码e xcel vba 实例源代码excel vba 实例源代码-excel vba examples of source code examples of e xcel vba source code excel vba examples of source code
- 2023-08-12 07:40:03下载
- 积分:1
-
Eight digital tube experiments S3C44B0 Example directory file structure: 8led_te...
八段数码管实验用例S3C44b0
目录文件结构:
8led_test
├─ main.c C语言主源文件
└─ 8led.c 八段数码管处理函数源文件
如何烧写程序到Flash中,请阅读common目录下的ProgramFlash.txt文件。-Eight digital tube experiments S3C44B0 Example directory file structure: 8led_test ├ ─ main.c C language main source file └ ─ 8led.c eight digital tube function source file how to deal with procedures to the Flash programmer, please read the common directory ProgramFlash . txt file.
- 2022-04-15 04:25:24下载
- 积分:1