rsync backup tool (with rsync+inotify real-time synchronization deployment example)

rsync 1. Overview of rsync 1.1 About rsync 1.2 Features of rsync 1.3 Working principle 2. rsync related commands 2.1 Basic format and common options 2.2 Start and shut down the rsync service 2.3 Basic format of downlink synchronization 2.4 Basic format of upstream synchronization 2.4 No interaction 2.4.1 Specify password file 2.4.2rsync-daemon method 2.4.3 […]

rsync remote synchronization + inotify monitoring

Table of Contents 1. Introduction to rsync: 2. Principle of rsync copying: 3. rsync synchronization method: 4. Basic format: 1. Commonly used options: 2. Two methods of synchronization: 3. Interaction-free format configuration: 5. Configure rsync source server: 1. Preparation: 2. Write configuration file: 3. Create a data password file for the backup account: 4. Add […]

FreeRTOS semaphore and task synchronization-1 binary semaphore

Semaphore is a messaging mechanism used by the operating system to implement resource management and task synchronization. FreeRTOS semaphores are divided into binary semaphores, counting semaphores, mutual exclusion semaphores and recursive mutual exclusion semaphores. A mutually exclusive semaphore can be regarded as a special binary semaphore, but there are some differences between mutually exclusive semaphores […]

uCOSIII real-time operating system 2 Synchronization and communication

Table of Contents Synchronization concept: Mutually exclusive concepts: Critical section concept: Task time concept: Semaphore concept: Mutually exclusive semaphore concept: Event flag group concept: Message mailbox and message echelon concepts: Memory management concepts: How to switch from bare metal development to OS programming: Polling system: Front and backend systems: Multitasking system: Synchronization concept: Tasks are […]

Canal realizes data synchronization

1. Canal realizes data synchronization Canal can be used to monitor changes in database data to obtain new or modified data. 1.1 Working principle of Canal The principle is relatively simple: 1. Canal simulates the interaction protocol of mysql slave, disguises itself as mysql slave, and sends the dump protocol to mysql master. 2. The […]

[Linux]Thread synchronization

[Linux]Thread synchronization Article directory [Linux]Thread synchronization Thread synchronization Thread starvation problem concept Thread synchronization control–condition variables pthread_cond_init function pthread_cond_destroy function pthread_cond_wait function pthread_cond_signal function pthread_cond_broadcast function Examples of using functions related to condition variables producer consumer model Producer-consumer model based on BlockingQueue Thread synchronization control–POSIX semaphore concept sem_init function sem_wait function sem_post function sem_destroy function […]

Embedded Linux application development-driver collection-synchronization and mutual exclusion ① inline assembly

Embedded Linux application development-driver collection-synchronization and mutual exclusion ① inline assembly Chapter 1 Synchronization and Mutual Exclusion① 1.1 Inline assembly 1.1.1 Implementation of addition in C language 1.1.2 Use assembly functions to implement addition 1.1.3 Inline assembly syntax 1.1.4 Writing inline assembly to implement addition 1.1.5 Example of earlyclobber 1.2 Examples of failure of synchronization […]

Embedded Linux application development – driver collection – synchronization and mutual exclusion ② implementation of atomic operations

Embedded Linux application development-driver collection-implementation of synchronization and mutual exclusion ② atomic operations Chapter 1 Synchronization and Mutual Exclusion② 1.3 Implementation principles and usage of atomic operations 1.3.1 Kernel operation functions of atomic variables 1.3.2 Kernel implementation of atomic variables 1.3.2.1 Implementation of ATOMIC_OP in UP system 1.3.2.2 Implementation of ATOMIC_OP in SMP system 1.3.3 […]

Embedded Linux application development – driver collection – synchronization and mutual exclusion ④ implementation of spin lock/semaphore/mutex

Embedded Linux application development-driver collection-synchronization and mutual exclusion ④ implementation of spin lock/semaphore/mutex Chapter 1 Synchronization and Mutual Exclusion④ 1.5 Implementation of spinlock spinlock 1.5.1 Spin lock kernel structure 1.5.2 Implementation of spinlock in UP system 1.5.3 Implementation of spinlock in SMP system 1.6 Implementation of semaphore 1.6.1 Kernel structure of semaphore 1.6.2 Implementation of […]

Embedded Linux application development-Driver Collection-Introduction and use of synchronization and mutual exclusion ③ locks

Embedded Linux application development-driver collection-introduction and use of synchronization and mutual exclusion ③ locks Chapter 1 Synchronization and Mutual Exclusion③ 1.4 Introduction and use of Linux lock 1.4.1 Types of locks 1.4.1.1 Spin lock 1.4.1.2 Sleep lock 1.4.2 Lock kernel function 1.4.2.1 Spin lock 1.4.2.2 Semaphore 1.4.2.3 Mutex 1.4.2.4 The difference between semaphore and mutex […]