Topic 1 of computer operating system: learning the relationship between process synchronization and mutual exclusion in multi-channel environment

1. Problem description There is a box on the bicycle production line, in which there are N positions (N ≥ 3). Each position can store a frame or a wheel, and there are three workers. Their activities are: 2. Problem analysis (including knowledge points involved, restriction relationship analysis, problem solving ideas, etc.) According to t ...

Added by frymaster on Wed, 27 Oct 2021 01:57:05 +0300

Principle analysis and pin reuse of NXP i.MX6 GPIO

Project scenario: Reuse the GPIO pin on the overlooking electronic TW-IMX6DL-EVM development board and share its principle. Compilation environment and development package: host: Ubuntu 18.04 Cross compiler: arm linux gnueabihf GCC Development board: TW-IMX6DL-EVM Linux: Linux-4.1.15 Note: all commands in this article refer to the path of ...

Added by chriztofur on Tue, 12 Oct 2021 08:38:43 +0300

Operating system notes

Main contents: semaphore and tube pass Semaphore Abstract data type of semaphore A shaping sem with two atomic operationsp(), sem minus one. If it is less than 0, waitv(), sem+1. If SEM < = 0, wake up a waiting process Semaphores are protected variables After initialization, the only way to change the value of a semaphore is through P V ...

Added by lwq on Sun, 10 Oct 2021 08:01:53 +0300

[sduoj] create command line application

2021SC@SDUSC introduction As an oj system, it can not judge the submission results of only one language, and it may even support all common language types. However, different languages require different compile and run commands. If the task of judging the language type is entrusted to the problem solver, we may need to modify the source co ...

Added by mattmate on Thu, 07 Oct 2021 18:12:39 +0300

Operating Systems: Three Easy Pieces Chapter 30 (conditional variables) description of exercise program

Introduction to operating system : Operating Systems: Three Easy Pieces After class exercises: Homework The translation of the README part of the exercises after class in this chapter (easy to view later): 1. Introduction to exercises          This assignment allows you to explore some real code tha ...

Added by 40esp on Mon, 04 Oct 2021 00:08:50 +0300