搜索资源列表
ProducerandConsumerProblem
- 用多进程同步方法解决生产者-消费者问题 设计目的:通过研究Linux 的进程机制和信号量实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1-20这20个整型数. 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者县城的标识符.(2)生产者和消费者各有两个以上.(3)多个生产者或多个消费者之间须有共享对缓冲区进行操作的函数代码.-Synchronous multi-process so
mmap
- UNIX提供了程序共享内存的机制,Linux内核从2.0开始也加入了这一功能。mmap(memory map)函数用于建立一段内存,使之能够被多个程序读写。它创建一个指向一段内存区域的指针并将其与特定的文件内容关联。-UNIX provides a mechanism for sharing memory, Linux kernel 2.0 from the beginning of this feature is also added. mmap (memory map) for the e
write
- 该程序是在linux下执行,首先创建一个文件,然后对此文件进行读写操作。接着,写入“Hello,I m writing to this file!”,此时文件指针位于文件尾部。接着再使用lseek函数将文件指针移到文件开始处,并读出10个字节并将其打印出来。-The program is run under linux, first of all to create a document, and then read and write operations on this file. Then
consumer
- 题目二:用多进程同步方法解决生产者-消费者问题。 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1-20这20个整型数. 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者线程的标识符.(2)生产者和消费者各有两个以上.(3)多个生产者或多个消费者之间须有共享对缓冲区进行操作的函数代码.-Title 2: The multi-process synchronization solution to
sharedm
- 用共享存储区方式实现多个进程的通信程序: 该程序通过shmget()函数创建共享存储区,将一个字符串指针指向该存储区的起始地址,然后通过fork()创建两个子进程,通过对该字符串指针的读写达到多进程间的通信。程序中使用sleep()函数调节各进程对共享存储区的读写操作顺序。-With the shared memory area where multiple processes of communication program: the program through the shmget
chain_sch
- 一个使用链表存储学生信息的程序,函数指针作为参数的用法-Students use the information stored in a linked list program, the usage of function pointer as a parameter
schedule-by-statemechine
- 以状态机方式实现了一个简单的任务调度模块,其中包括了对数据库,函数指针,调度linux shell的应用,超详细-The state machine approach to achieve a simple task scheduler module, including the application of the database, the function pointer, scheduling linux shell, ultra-detailed
code-patching
- On PPC64 ABIv1 the function pointer actually points to the function s descr iptor. The first entry in the descr iptor is the address of the function text.
xfs_mru_cache
- Function pointer type for callback to free a client s data pointer.
GrGLContext
- We haven t validated the GrGLInterface yet, so check for GetString function pointer. -We haven t validated the GrGLInterface yet, so check for GetString function pointer.
calldata
- Register createTargetMachine function pointer to mcld.
GrBlend
- vp8_quantize_mbX functions here differs corresponding ones in quantize.c only by using quantize_b_pair function pointer instead of the regular quantize_b function pointer. -vp8_quantize_mbX functions here differs corresponding ones in quantize.c o
ClientAPIExts
- define function pointer type for each extention function typename has the form __egl_{funcname_t.
ttydev
- Must be C linkage to pass function pointer to the sort function.
Camera3Device
- Function pointer types with C calling convention to use for HAL callback functions.
invoke_lvalue
- member function pointer.
SkBoundable
- Function pointer that reads a scanline of src SkPMColors, and writes a corresponding scanline of 16bit colors (specific format based on the config passed to the Factory.
SkPdfOps
- FIXME (scroggo): Make a cleaner interface for this, and avoid statics and globals. Map of string to function pointer for all known draw operations.
invoke
- member function pointer.const member function pointer.
SkTRegistry
- Template class that registers itself (in the constructor) into a linked-list and provides a function-pointer. This can be used to auto-register a set of services, e.g. a set of image codecs.