Welcome![Sign In][Sign Up]
Location:
Search - Semaphore

Search list

[VxWorksmsg_VxWorks

Description: 原创:vxworks的消息队列 一个任务运行时的数据和状态怎么告诉其他任务?信号量为任务间同步和互斥提供了提供了高效的方法,但它不能携带更多的任务信息。因而需要使用更高级的通讯方式,即消息队列和管道。这节主要讲消息队列。-Original: vxworks task message queue for run-time data and how to tell the status of other tasks? Semaphore for inter-task synchronization and mutual exclusion provides a way to provide a highly efficient, but it can not carry more information of the task. Therefore need to use more advanced means of communication, that is, message queue and the pipeline. This section stresses the main message queue.
Platform: | Size: 124928 | Author: 郑禾 | Hits:

[OS program2_Memory

Description: 内存管理实验程序。 要求 : 使用 Windows XP的 API 函数,编写一个包含两个线程的进程,一个线程用于模拟内存 分配活动,一个线程用于跟踪第一个线程的内存行为,而且要求两个线程之间通过信号量实 现同步。模拟内存活动的线程可以从一个文件中读出要进行的内存操作,每个内存操作包括 如下内容: 1、时间:操作等待时间。 2、块数:分配内存的粒度。 3、操作:包括保留(reserve)一个区域、提交(commit)一个区域、释放(release)一个区域、回收(decommit)一个区域和加锁(lock)与解锁(unlock)一个区域,可以将这些操作编号存放于文件。-Experimental procedures for memory management. Requirements: Windows XP to use the API function to prepare a process contains two threads, a thread used to simulate the memory Distribution activities, a thread for tracking the first acts of the thread of memory, but also between the two threads through the semaphore is Are synchronized. Thread memory simulation activities can be read from a file to the memory operation, each memory operation, including The following: 1, time: time to wait for the operation. 2, block number: the size distribution of memory. 3, steps: including the reservation (reserve) a region, the author (commit) to a single region, the release (release) a regional, recycling (decommit) a regional and locking (lock) and unlock (unlock) a region, can be operation code stored in the document.
Platform: | Size: 2056192 | Author: adia | Hits:

[OS programprocess_manager

Description: 支持多道程序的进程控制模块的设计与实现,要求完成以下功能: 1,进程控制:创建、撤销、阻塞、唤醒 2,进程调度:CPU调度算法 3,进程同步:信号量的定义、信号量的操作(wait、signal) 4,内存管理:实现页式内存管理、LRU页面置换 5,中断处理:中断响应、中断处理 6,时钟管理:时钟、定时器 7,用图形化方式展示多进程并发执行过程 -Support the process of multi-channel process control module of the Design and Implementation, required to complete the following functions: 1, process control: the creation, revocation, blocking, wake-up 2, the process of scheduling: CPU scheduling algorithm 3, the process of synchronization: the definition of semaphores, semaphore operation (wait, signal) 4, memory management: memory management to achieve page, LRU replacement page 5, interrupt handling: interrupt response, interrupt handling 6, clock management: clock, timer 7, a graphical display with multi-process concurrency the implementation process
Platform: | Size: 1977344 | Author: yefeng | Hits:

[File FormatDuoXianCheng

Description: windows系统的多线程同步。本系统采用MFC编程。其运行界面如图1-2所示。分别人事件、互斥量、临界资源、信号量实现线程同步-windows of the multi-threaded synchronization system. MFC programming using the system. Running the interface as shown in Figure 1-2. Incidents, respectively, the amount mutually exclusive, critical resources, the realization of thread synchronization semaphore
Platform: | Size: 216064 | Author: dada | Hits:

[File FormatPV

Description: 读者写者问题,共享原则如下:1、读/写互斥访问;2、写/写互斥访问;3、允许多个读者同时对文件进行访问。-semaphore rmutex=1,rwmutex=1 int count=0 Cobegin reader: writer:
Platform: | Size: 1024 | Author: baoyu | Hits:

[VxWorksVxWorksForNewStudent

Description: 讲解了VxWorks开发环境Tornado2.2的基本应用方法。包括工程创建,config.h配置,编译器配置,FTP设置,组件配置,库文件生成,还有个互斥信号量的例子。-VxWorks development environment on a basic application Tornado2.2. Including works to create, config.h configuration, compiler configuration, FTP settings, component configuration, library file to generate, there is a mutually exclusive semaphore example.
Platform: | Size: 12786688 | Author: 马志昕 | Hits:

[Othersync

Description: sync process via semaphore
Platform: | Size: 1024 | Author: dawormmastermind | Hits:

[Windows CEThreadSynBySemaphore

Description: 使用信号量的线程同步技术,可以允许预定数目的线程同时进入要同步的代码。适用于WinCE环境。-The use of Semaphore thread synchronization technology, can allow pre-determined number of threads to be synchronized at the same time to enter the code. Applicable to WinCE environment.
Platform: | Size: 116736 | Author: 秦中元 | Hits:

[Linux-Unixzhexue

Description: 通过研究Linux的线程机制和信号量实现哲学家就餐问题的并发控制-By studying the Linux thread and semaphore mechanisms to achieve dining philosophers problem of concurrency control
Platform: | Size: 1024 | Author: 王晓难 | Hits:

[Linux-Unixjinchengtongxin

Description: 进程间通信基础(理论+实例) 包括管道,有名管道,消息队列,信号灯,共享内存,socket。-The basis of inter-process communication (theory+ examples), including pipelines, well-known pipes, message queues, semaphore, shared memory, socket.
Platform: | Size: 671744 | Author: 王小白 | Hits:

[Windows DevelopProducersAndCustomers

Description: 通过研究Linux的线程机制和信号量实现生产者消费者(Bounded Buffer)问题的并发控制。 通过n个缓冲区组成缓冲池共同完成“生产和消费”任务,每个缓冲区存放一个产品,生产者将生产出的产品放入空缓冲区;消费者从满缓冲区中取出产品。一旦所有缓冲区均满时,生产者必须等待消费者提供空缓冲区。另外,对所有生产者和消费者线程来说,缓冲池是临界资源,即任何一个线程在对某个缓冲区进行“存”和“取”操作时须和其他线程互斥执行。 -By studying the Linux thread and semaphore mechanisms to achieve the producer consumer (Bounded Buffer) the issue of concurrency control. N the composition of a buffer zone through the buffer pool together, " production and consumption," the task, each buffer storing a product, producers will produce products Add empty buffer consumers out of the buffer zone from the full product. Once all the buffers are full, the producer must wait until buffer space consumers. In addition, producers and consumers of all threads, the buffer pool is a critical resource, that is, any thread of a buffer zone in the " deposit" and " check" operation to be mutually exclusive and the implementation of other threads.
Platform: | Size: 5120 | Author: vivien | Hits:

[Linux-UnixProducerandConsumerProblem

Description: 用多进程同步方法解决生产者-消费者问题 设计目的:通过研究Linux 的进程机制和信号量实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1-20这20个整型数. 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者县城的标识符.(2)生产者和消费者各有两个以上.(3)多个生产者或多个消费者之间须有共享对缓冲区进行操作的函数代码.-Synchronous multi-process solutions to producers- designed to consumer issues: the process by studying the mechanisms and Linux Semaphore producers to achieve concurrency control on consumer issues. Note: There are bounded buffer 20 storage units, Add/Remove the data item is set to 1-20 this 20 integer. design requirements: (1) Each producers and consumers to have the sector to operate the buffer zone immediately after showing the entire contents of the buffer zone sector, the current pointer location and producer/consumer identifier county. (2) producers and consumers have more than two. (3) a number of producers or more consumers must be shared between the operation of the buffer zone a function of the code. NOTE: (1) bounded buffer array can be used to achieve
Platform: | Size: 29696 | Author: CoCo | Hits:

[DSP programbios_mbx_sem_swi

Description: CCS下DSP/BIOS实时操作系统相关例程源代码,包括邮箱、软件中断,旗语等管理模块-CCS under the DSP/BIOS real-time operating system source code related routines, including mail, software interrupt, semaphore management module, etc.
Platform: | Size: 1740800 | Author: HaierXu | Hits:

[OS DevelopOperatingSystem

Description: 该程序涉及进程创建和撤销相关理论;涉及信号量相关理论;涉及进程调度相关理论; 涉及死锁相关理论;涉及页面置换相关理论;涉及磁盘调度相关理论;涉及内存管理相关理论;是一个真实的内核实验,它涉及了可执行文件的装载与重定位。 -The program involves the process of creation and revocation of the relevant theory related Semaphore related theory involved in the process of scheduling theory involving deadlock theory theory involves replacement page involved Disk Scheduling theory involved in memory management theory is a real core experiment, which involves the loading of the executable file and re-positioning.
Platform: | Size: 31744 | Author: 李方 | Hits:

[OS program1

Description: 操作系统信号量操作,PV操作,信号量机制,C++实现pv操作-Semaphore operation of the operating system, PV operation, semaphore mechanism, C++ to achieve pv operation
Platform: | Size: 1024 | Author: 70 | Hits:

[Windows Developsem_named_lock

Description: use named semaphore to lock and unlock the resource, like mutex, but it use between processed.
Platform: | Size: 1024 | Author: joyce | Hits:

[Software EngineeringDesignofMultipleInterruptsTreatmentBasedonVxWorks.

Description: :考虑VxWorks 的中断在具体实现上的特殊性,提出一个针对多块采集板系统的中断设计方案,把传统的中断服务程序分解为中断 服务程序和中断服务任务,利用信号灯进行同步,通过在中断服务任务中引入用户定义的优先级,增强系统处理多中断时的可靠性和实 时性。-】Considering the specificity in the specific realization of interrupt in the VxWorks, this paper proposes an interrupt treatment design of a system consisted of multiple data acquisition boards. It divides the traditional Interrupt Service Routine(ISR) into interrupt service routine and interrupt service task, and makes use of the semaphore to synchronize them. By introducing the priority that users define, the design enhances the real-time performance and stability of the system.
Platform: | Size: 1027072 | Author: mabeibei | Hits:

[Windows Developrw

Description: 创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。-Create a console process, this process contains n threads. Use of these n threads to represent n-reader or writer. Each thread according to the requirements of the corresponding test data file read and write operations. Semaphore mechanism are used to achieve the reader and the writer first priority.
Platform: | Size: 1024 | Author: DP | Hits:

[Driver Developblock

Description: linux中断驱动程序的实现,我搞了很长时间爱你才搞出来-struct my_pipe { wait_queue_head_t inq,outq /* read and write queues*/ char*buffer,*end /* begin of buf,end of buf*/ int buffersize /* used in pointer arithmetic*/ char*rp,*wp /* where to read,where to write*/ int nreaders,nwriters /* number of openings for r/w*/ struct semaphore sem /* mutual exclusion semaphore*/ struct cdev cdev /* Char device structure*/ }
Platform: | Size: 3072 | Author: 唐晋星 | Hits:

[Process-ThreadReader_Writer_plus

Description: 一个属于操作系统方面的一个著名的读者写者问题,通过它的实现可以对操作系统信号量机制和进程线程同步及通信有深刻的理解-A part of the operating system in a well-known readers to write those problems, through its implementation can be a mechanism and process of the operating system semaphore thread synchronization and communication have a deep understanding of
Platform: | Size: 31744 | Author: macintosh | Hits:
« 1 2 ... 5 6 7 8 9 1011 12 13 14 15 ... 28 »

CodeBus www.codebus.net