0 basic society simple QQ version chat dialogue function (with complete implementation code)

Today we will use the famous pipe mkfifo to realize a simple version of QQ dialogue function. Step 1: first create two processes Talka C and talkb c; Step 2: talk a C and talkb C is responsible for checking whether two pipelines have been created. If not, it is necessary to create pipelines; Step 3: talk a C open pipe 1 in a write only mann ...

Posted by Hannes2k on Mon, 07 Mar 2022 22:40:26 +0100

ucore_lab2 experimental report

After the experiment of lab1 is completed, start lab2, which mainly realizes memory allocation Purpose of the experiment: Understand the translation mechanism based on segment page memory addressUnderstand the establishment and use of page tableUnderstand how to manage physical memory In lab1, we use segment management, and the addresses inv ...

Posted by discobean on Mon, 07 Mar 2022 11:06:56 +0100

MAE source code understanding part1: debugging understanding method

git official link: GitHub - facebookresearch/mae: PyTorch implementation of MAE https//arxiv.org/abs/2111.06377 I can't understand the MAE code at all. I want to understand this code step by step. I think it's useful to see the great God code. This article is for notes. 1, Running example: How to say, it must be taking out the code in the ...

Posted by inkfish on Fri, 04 Mar 2022 20:06:41 +0100

Chuanzhi health project ------------ Chapter III check the addition, deletion and modification of the package

I New package (1). Perfect page The new package is divided into two parts: the first is the basic information of the package, and the second is the information of the inspection group associated with the package Among them, the new package is different from that of the previous inspection item inspection group, and the function of uploading ...

Posted by djheru on Thu, 03 Mar 2022 10:28:11 +0100

C/C + + programs read (save) data from text files

In C program: When dealing with data (files) outside the program code, we use the concept of stream to realize the data exchange between the process's virtual memory and files. ——FILE stream: the C standard library provides FILE (named FILE because linux treats all mechanisms as files). The FILE object is a structure that contain ...

Posted by bqheath on Sat, 26 Feb 2022 16:20:47 +0100

window10_ffmpeg debugging environment construction - self compilation

I recommend a free open course of zero sound college. Personally, I think the teacher speaks well. I share it with you: Linux, Nginx, ZeroMQ, MySQL, Redis, fastdfs, MongoDB, ZK, streaming media, CDN, P2P, K8S, Docker, TCP/IP, collaboration, DPDK and other technical contents, learn immediately "Windows 10_ffmpeg debugging environment cons ...

Posted by clandestine555 on Fri, 25 Feb 2022 06:44:47 +0100

Vue scaffold creation steps

After configuring the node environment, use npm to install Vue cli globally: Installation command: npm install -g @vue/cli After installation, create a Vue project. My test is the project name vue create my-test Configuration creation vue This is to ask whether we use default configuration to create vue or manual configuration. I prefer m ...

Posted by hermand on Fri, 25 Feb 2022 04:21:04 +0100

Assembly language (Wang Shuang) - Experiment

Chapter 7 more flexible method of locating memory address 2. Program and complete the procedure in question 7.9 assume cs:codesg,ss:stacksg,ds:datasg stacksg segment dw 0,0,0,0,0,0,0,0 stacksg ends datasg segment db '1. display ' db '2. brows ' db '3. replace ' db '4. modify ' datasg ends codesg segment s ...

Posted by verlen on Thu, 24 Feb 2022 15:18:43 +0100

C language uses GNU extension to realize simple intelligent pointer

C language uses GNU extension to realize intelligent pointer GNU/C has one__ attribute__ The extension is called cleanup: https://gcc.gnu.org/onlinedocs/gcc-4.6.2/gcc/Variable-Attributes.html#Variable-Attributes Its function is to automatically execute a bound function when a variable is out of its scope This out of scope can be out of curly ...

Posted by sweyhrich on Mon, 31 Jan 2022 15:54:59 +0100

SSM technology integration of SpringBoot

1, SpringBoot build ① . building modules Spring Web: integrate ssm environment and build server; MyBatis Framework: integrate MyBatis; MySQL Driver: database; ② . yml file server: port: 8080 2, MBG reverse engineering 1. Connect to database 2. Code generation ① Import reverse engineering dependency <!--Reverse engineering ...

Posted by fgm on Fri, 21 Jan 2022 20:11:43 +0100