C language exception handling

preface Errors and exceptions: Errors and exceptions are errors that occur during program compilation or running. The difference is that exceptions can be caught and handled by developers; Errors generally do not need to be handled by developers (and cannot be handled), such as memory overflow. If exceptions are not handled in time, errors may ...

Added by rlafountain on Fri, 19 Nov 2021 22:22:28 +0200

C processes and threads

Catalogue of series articles preface The generation mode of learning process, such as fork(), system(), exec() functions, etcCommunication and synchronization between Linux processes, including pipe, named pipe fifo, semaphore sem, shared memory shm, message queue msg, and signal. Record their learningLearn the thread programming mo ...

Added by dksmarte on Fri, 19 Nov 2021 16:07:35 +0200

Sound card driver 06 - Implementation of alsa driver - virtual sound card - widget

Platform: ubuntu 16.04, the kernel version is 4.15.0. Theoretically, any platform can, even android, as long as it can be compiled. Functions to be completed: there may be multiple recording channels in a codec. What should I do if I want to open a channel for recording? Purpose: just like doing a math problem, read the answer once and think ...

Added by h3ktlk on Fri, 19 Nov 2021 07:40:20 +0200

I'll get a time and the machine will go down

1. Background linux time management includes the concepts of clocksource, clockevent, timer, tick, timekeeper and so on. These concepts organically form a complete time code system. Of course, there will be bugs in the code. This paper starts with a bug to deepen the understanding of the theory in practice. Get the time, but crash. 2. Fault p ...

Added by Dingbats on Thu, 18 Nov 2021 13:32:02 +0200

Chapter 6 of the third book: enterprise DNS server construction

This experiment requires two hosts nodea and nodeb 1. Explanation of dns terms DNS: domain name service 1) About clients: /etc/resolv.conf    ## dns points to file nameserver 172.25.254.117 2) Test: host www.baidu.com       ## Address resolution command dig www.baidu.com      &nbsp ...

Added by mbrown on Thu, 18 Nov 2021 11:42:06 +0200

linux Network Programming -- socket server and client TCP programming and multi process programming

1. Basic communication process between client and server in network programming 2. Server and client programming < iterative server > 2.1. Iterative server programming 2.1.1. Command line parameter parsing The server parameter only has the port number. Add a help parameter < - H > to explain the usage of this commandThe co ...

Added by eduard on Fri, 12 Nov 2021 17:57:09 +0200

Use KeepAlived to implement a highly available DR model

Author: Grey Original address: Use KeepAlived to implement a highly available DR model operating system CentOS 8 Related tools keepalivedipvsadmhttpd preparation Prepare four nodes, as shown in the figure above, Node01 ~ Node04. By default, you will install Linux on VMWare and configure relevant information. If this content is not clear, ...

Added by ssmitra on Fri, 12 Nov 2021 09:50:17 +0200

Linux disk partition

Linux disk partition preparation in advance The first step is to open the virtual machine and click Edit virtual machine settings Click the Add button Select the hard drive and click next Select SCSI typeSelect create new virtual hard disk Specify the disk size and select the second or third option (remember not to select the first one, ...

Added by Mr_jmm on Fri, 12 Nov 2021 06:13:39 +0200

How to realize one click upload with ftp

brief introduction ftp is the user interface of Internet standard file transfer protocol, which allows users to transfer files with remote network sites Using FTP client to upload files requires an FTP server. This paper mainly introduces the commands related to FTP client uploading. By default, the FTP server has been installed The FTP se ...

Added by mechamecha on Fri, 12 Nov 2021 01:55:31 +0200

Docker learning track I (docker introduction and installation)

Docker introduction What is Docker? When people say "Docker", they usually refer to Docker Engine, which is a client server application, which is controlled by Docker A daemon, a REST API that specifies the interface to interact with the daemon, and a command line interface (CLI) to communicate with the daemon (by encapsulating ...

Added by BostonMark on Thu, 11 Nov 2021 04:49:20 +0200