[Linux] Thread safety issues ① – Explanation of the principle of mutex locks & how to use mutex locks to achieve mutual exclusion of resource access (with diagrams and code implementation)

Thread safety is mainly divided into two aspects, namely resource access mutual exclusion and thread synchronization (thread cooperation) In this blog, we mainly explain the aspect of resource access mutual exclusion. Table of Contents Why do we need to implement resource access mutual exclusion? The classic mechanism to implement resource access mutual exclusion (atomic access) […]

Draw X-Bar-S and X-Bar-R diagrams, monitor the process, and calculate the CPK process capability index

X-Bar-S charts and X-Bar-R charts are two control charts commonly used in statistical quality control to monitor the stability and consistency of the process. They differ primarily in how changes in data are calculated and presented and in the types of questions focused on. X-Bar-S chart (mean and standard deviation chart): X-Bar represents the sample […]

C4BUILDER – Web project for building C4 model diagrams

What is c4builder? c4builder: Literally understood as a builder that generates C4 architecture diagrams. c4builder is a lightweight nodejscli tool for building, maintaining and sharing software architecture projects using only text. c4builder is an architecture design tool that helps developers and architects describe and visualize the architecture of a software system, including the system’s components, […]

[Online Simulation] Use HDLBits for online comprehensive simulation of FPGA code and generation of timing diagrams

This article describes the use of HDLBits for online comprehensive simulation of FPGA code and generation of timing diagrams to verify your own design. After studying this tutorial, you can easily build your own simulation by checking the “Summary of necessary simulation elements” each time! Article directory Introduction to HDLBits Online simulation rule learning Official […]

Learn to use AI to generate system framework diagrams and sequence diagrams

For readers:Software engineers, architects, IT professionals, designers, etc. Article goal: Improve our work efficiency Overview Build system design framework diagram Build sequence diagram Limitations and tips for graph generation generalize Large language models trained with appropriate content can generate responses beyond just English text. For example, ChatGPT is known to be able to generate code […]

10 diagrams of K8S CNI Calico network model principles and functional practices

1. Overview Calico is a networking and network strategy provider. Calico supports a flexible set of network options so you can choose what works best for your situation, including non-overlay and overlay networks, with or without BGP. Calico uses the same engine to enforce network policy at the service mesh layer for hosts, pods, and […]