-
试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型...
试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型数。 要求: (1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容.当前指针位置和生产者/消费者线程的标识符 (2)生产者和消费者各有两个以上 (3)多个生产者或多个消费者之间须共享对缓冲区进行操作的函数代码。-Test Objective : To study the Linux threading mechanism and signal to producers and consumers to achieve the concurrency control : a boundary buffer There are 20 storage units, Add/remove data items for a set of 20 ~ 20-integer. Requirements : (1) Each producer and consumer sector of the buffer zone is operated, immediately after the sector showed a buffer in its entirety. The current position and producer/consumer threads identifier (2) producers and consumers have two or more (3) A number of producers or many consumers to be shared between the right to operate the buffer function code.
- 2023-06-17 09:40:03下载
- 积分:1
-
fsdfsd 好超级好是酷我
废话废话 blahblahblahblahblahblah
使用系统 ;
使用 System.Collections.Generic ;
使用 System.Linq ;
使用 System.Text ;
使用 System.Data.SqlClient ;
使用 System.Data ;
使用 System.Threading ;
ConsoleApplication3 的命名空间
{
类的程序
{
静态 void Main (字符串 [] args)
{
字符串 connectionString = @"数据源 =。SQLEXPRESS2008R2 ;
初始目录 = lab8 ;
集成安全性 = True";
System.Data.SqlClient.SqlConnection cn = 新 System.Data.SqlClient.SqlConnection(connectionString) ;
cn。Open ();
字符串路径 = @"c:lab8";
foreach (文件路径字符串中 System.IO.Directory.GetFiles(path))
{
SqlCommand cmd = 新 SqlCommand ("插入到 Files2(Name,Date) 值 (@Name,@Date)",cn) ;
SqlParameter param = 新 SqlParameter() ;
param。ParameterName ="@Name";
param。值 = System.IO.Path.GetFileName(filePath) ;
param。SqlDbType = SqlDbType.VarChar ;
cmd.Parameters.Add(param) ;
param = 新 SqlParameter()
- 2023-07-19 16:15:03下载
- 积分:1
-
Running on T
运行于T-Engine(使用T-Kernel操作系统)的实例源码,该T-Engine采用处理器为sh7727-Running on T-Engine (the use of T-Kernel operating system) source code examples, the T-Engine used for the SH7727 processor
- 2022-12-17 12:25:02下载
- 积分:1
-
gerneral os development
gerneral os development
- 2022-07-17 19:23:00下载
- 积分:1
-
just learning platforms is a good novice can look at this procedure.
刚刚学习操作系统得新手们可以好好看看这个程序.-just learning platforms is a good novice can look at this procedure.
- 2022-02-22 12:53:42下载
- 积分:1
-
minix操作系统分析
minix操作系统分析-Minix operating system analysis
- 2022-05-18 17:13:24下载
- 积分:1
-
注册表监控
一个注册表监控封装类,当监控的注册表键值发生变化,会触发回调事件检索,是一个学习注册表操作非常好的参考。
- 2022-03-30 04:20:22下载
- 积分:1
-
elf 详解,主要介绍elf的文件格式,运用,表示方法等,用了大量的例子进行说明...
elf 详解,主要介绍elf的文件格式,运用,表示方法等,用了大量的例子进行说明-elf digest, introduction to elf format, implementation, using examples to demonstrate it
- 2022-01-26 02:14:53下载
- 积分:1
-
DES
如果其他会员下载一次您上传的源码,您的可用下载数就会增加1次。更多说明请参看-DES
- 2022-05-07 01:24:01下载
- 积分:1
-
EOS is a major open
EOS是一个主要用于教学的开源操作系统,它的源码风格是windows内核风格。EOS的整体结构简单,从boot、loader、kernel.dll到应用程序,结构清晰简单,但是功能内核功能也比较完整,源码总数为10000多行,比较适合初中级操作系统内核源码学习者。
与Linux0.11或0.12相比,EOS的内核的结构更加的模块化,结构比之清晰,是学习操作系统原理与内核分析研究的较好的工具。
-EOS is a major open-source operating system for teaching, and its style is windows kernel source code style. EOS" s overall structure is simple, from the boot, loader, kernel.dll to the application, the structure clear and straightforward, but the function of the kernel functions are relatively complete, a total of more than 10,000 source lines, more suitable for middle-class operating system kernel source code learners. 0.12, compared with Linux0.11 or, EOS of the core structure of a more modular structure than the clear, is to learn principles and core analysis of the operating system a better tool.
- 2023-03-20 19:55:04下载
- 积分:1