搜索资源列表
ProducerandConsumerProblem
- 用多进程同步方法解决生产者-消费者问题 设计目的:通过研究Linux 的进程机制和信号量实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1-20这20个整型数. 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者县城的标识符.(2)生产者和消费者各有两个以上.(3)多个生产者或多个消费者之间须有共享对缓冲区进行操作的函数代码.-Synchronous multi-process so
Lightemplate
- 调用方法简单,支持if else include之类的标签, 可以包含扩展函数,整个模版文件没有外部include和require,减少io操作, 加载三个模版变量,两个数组变量,比smarttemplate快平均2-3毫秒. 单纯加载模版文件,不设置任何变量lightemplate平均0.3毫秒左右,smarttemplate至少要1毫秒. -Call the method is simple, if else include support such as labels, may
chat.tar
- 麻雀虽小,五脏俱全加强版聊天室,源码来自网上搜得的,增加用户登录密码检查,聊天信息记录功能,版权归原作者所有,我只是修改下玩。在终端下执行,没有图形界面,没有创建子进程,利用int型数组保存客户accept套接字 -Sparrow may be small, fully-equipped enhanced version of chat rooms, source gathered from the Internet, and increase user login password check
templated_devices
- Solution for managing an array of devices ranged from 1 .. N and the array holding the devices ranged from 0 .. N-1. In this example we have a dictionary that receives string apply a hashing function on him that returns a class of indexes.
wang.c.tar
- 用二维数组名作为实参和形参,在对函数数组的声明的方式,实例。-Two-dimensional array of names as arguments and formal parameters, in a statement on the function of the array the way, examples.
shengchanzheyuxiaofeizhe
- 设计目的:通过研究Linux 的进程机制和信号量,实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,有界缓冲区可用数组实现,缓冲区中的内容自定。 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者进程标识符.(2)生产者和消费者至少各有两个以上.(3)多个生产者或多个消费者之间须有对缓冲区进行共享操作的函数代码(注意互斥与同步).-Design Objective: To study the mech
BiTree
- c语言基础的数组方式二叉树的实现,stack函数。-c array of language-based way binary tree implementation, stack function.
argv_split
- Linux Source Code Helper function for splitting a string into an argv-like array.-Linux Source Code Helper function for splitting a string into an argv-like array.
argv_parse
- utility function for parsing a string into a argc, argv array.
elsfk
- 在Ubutu系统下,利用C的数组,以及VT功能码等知识编写的俄罗斯方块小游戏,游戏可以直接运行玩耍,是初学者学习数组知识不错的资料-Under the Ubutu system, using arrays of C, and VT function code written knowledge tetris game, the game can be run directly to play, is a beginners array learning good information...
IO-(2)
- *使用select函数可以以非阻塞的方式和多个socket通信。程序只是演示select函数的使用,即使某个连接关闭以后也不会修改当前连接数,连接数达到最大值后会终止程序。 1. 程序使用了一个数组fd,通信开始后把需要通信的多个socket描述符都放入此数组 2. 首先生成一个叫sock_fd的socket描述符,用于监听端口。 3. 将sock_fd和数组fd中不为0的描述符放入select将检查的集合fdsr。 4. 处理fdsr中可以接收数据的连接。如果是sock_fd,
for-in
- When Array is called as a function rather than as a constructor, it creates and initializes a new array object. -When Array is called as a function rather than as a constructor, it creates and initializes a new array object.
Linux-shell)
- 1、 首先利用readline()函数读到用户输入的shell命令,采用一个数组来保存shell命令,数组有固定的大小。 2、 在main()函数中根据字符串中是否存在 "&" 字符判断是否为后台进程。如果是后台命令则判断是否是多条指令,如果不是将分割后的命令传递给pipel()函数,如果是的话分割之后利用while循环将命令传递给pipel()函数。如果不是后台进程,需要用waitpid()函数等待子进程结束后父进程才继续。 -1, we use readLine () functio
paravirtentry
- Helper function for splitting a string into an argv-like array.
string
- Helper function for splitting a string into an argv-like array.
dm-array
- Describes an array. Don t initialise this structure yourself, use the init function below.
sgidefs
- ash function implementation for the nontrivial specialization. All of them are based on a primitive that hashes a pointer to a byte array. -ash function implementation for the nontrivial specialization. All of them are based on a primitive that ha
xt_bpf
- Hash function implementation for the nontrivial specialization. All of them are based on a primitive that hashes a pointer to a byte array. -Hash function implementation for the nontrivial specialization. All of them are based on a primitive that
calcasts
- @param cases array of items to test. Terminate with a -1 for era.Utility function to test out a specific field. -@param cases array of items to test. Terminate with a -1 for era.Utility function to test out a specific field.
vertarr
- Each row in this array describes the elements of a particular interleaved array mode.The enum describing the GL type, as would be passed to the appropriate glPointer function.
