Description: 通过研究Linux的线程机制和信号量实现读者写者(Reader-Writer)问题并发控制。
1)写-写互斥:不能有两个写者同时进行写操作;
2)读-写互斥:不能同时有一个线程在读,而另一个线程在写;
3)读-读允许:可以有一个或多个读者在读;
4)读者优先的附加限制:如果读者申请进行读操作时已有另一个读者正在进行读操作,则该读者可直接开始读操作;
5)写者优先的附加限制:如果一个读者申请进行读操作时已有另一个写者在等待访问共享资源,则该读者必须等到没有写者处于等待状态后才能开始读操作。
-By studying the Linux thread mechanism and semaphores realize readers who write (Reader-Writer) the issue of concurrency control. 1) to write- write mutex: Can not write at the same time there are two write operations 2) read- write mutex: Can not have a thread at the same time in reading and writing another thread 3) Reading- Reading of permit: can have one or more readers read 4) the priority of additional restrictions readers: If the readers apply for a read operation, there was another reader being read, the reader can be directly started reading operation 5) to write additional priority Restrictions: If an application for a reader reading write operation has been in waiting for another visit to a shared resource, the reader must wait until those who had not been written in a wait state after the read operation can begin. Platform: |
Size: 7168 |
Author:vivien |
Hits:
Description: reader—writer problem
多线程同步算法
linux下实现-reader-writer problem linux multithreaded synchronization algorithm to achieve Platform: |
Size: 10240 |
Author:小贺 |
Hits:
Description: 在Linux下用多线程同步方法解决读者-写者问题(Reader-Writer Problem) -In Linux, use the multi-thread synchronization solution to the reader- writer problem (Reader-Writer Problem) Platform: |
Size: 113664 |
Author:孙芸芸 |
Hits:
Description: Linux Driver The ACR38T smart card reader/writer is a USB full speed device which is the interface for the communication between a computer and a smart card. It is designed for a PC environment, ultimate smart card peripheral for a PC. It is an extremely compact USB device fully compatible with the ACR38U smart card reader and is designed to access SIM sized smart cards (Plug-in card). With a size of only 84 mm x 21.5 mm x 10 mm, the ACR38T is highly suitable for portable applications, as it plugs into the USB port and requires no additional cable or wiring. It also fulfils the GSM 11.11 specification. ACR38T Driver-Linux Driver The ACR38T smart card reader/writer is a USB full speed device which is the interface for the communication between a computer and a smart card. It is designed for a PC environment, ultimate smart card peripheral for a PC. It is an extremely compact USB device fully compatible with the ACR38U smart card reader and is designed to access SIM sized smart cards (Plug-in card). With a size of only 84 mm x 21.5 mm x 10 mm, the ACR38T is highly suitable for portable applications, as it plugs into the USB port and requires no additional cable or wiring. It also fulfils the GSM 11.11 specification. ACR38T Driver Platform: |
Size: 18432 |
Author:GlebLar |
Hits:
Description: 在美国,汤姆·斯旺是“鼎鼎大名”的计算机图书作家,他的30余本计算机图书“本本热销”。这些热销图书中的很多种已经翻译成了中文简体版,同样也都成为了国内市场的畅销书。现在汤姆·斯旺再为Linux自由软件世界执笔,写下了Linux系统下C++编程方面的专著。书中介绍了在各种Linux系统下C++工具的差别及编程方法,介绍了面向对象式编程中常常遇到的类、包装、继承等常见课题,介绍了C++的字符串类、各种模板及算法库,还介绍了在X环境下,图形化软件的开发方式,等等。凭借多年写作的经验,汤姆·斯旺的著作,简单易懂,透视主题。他帮助读者,在轻松愉快的环境下,快速掌握相关的编程技术。-In the United States, Thomas Wong is the "famous" of computer book writer, and his more than 30 books in this computer "books selling." The selling of books have been translated into many Chinese Simplified, also the domestic market have become bestsellers. Thomas is now busy re-write for Linux free software world, wrote a Linux system programming in C++ monographs. The book describes a variety of Linux systems in C++ programming tools and the differences introduced object-oriented programming is often encountered in class, packaging, inheritance and other common issues, describes the C++ string class, a variety of templates and algorithm library, also introduced in the X environment, the graphical software development methods, and so on. With many years of writing experience, Thomas Wang s work, easy to understand perspective theme. He helps the reader, in a relaxed environment, to grasp the relevant programming. Platform: |
Size: 36532224 |
Author:张锐 |
Hits:
Description: A program to show inter-process-communication(ipc) between reader process and writer process (in linux systems) . Platform: |
Size: 1024 |
Author:nikbet |
Hits:
Description: A simple FIFO to be used as a producer consumer between two threads. One is writer and one is reader Source Code for Embedded Linux.
Platform: |
Size: 1024 |
Author:dzgengfy |
Hits:
Description: 在linux环境下编写应用程序,该程序运行时能创建N个线程,其中既有读者线程又有写者线程,它们按照事先设计好的测试数据进行读写操作。(The application program is written in Linux environment. The program can create N threads at runtime, including reader thread and writer thread. They read and write according to pre designed test data.) Platform: |
Size: 1024 |
Author:华龙者
|
Hits: