Secret Context Switching

What is context switching? In fact, at the time of a single processor, the operating system can handle multithreaded concurrent tasks.The processor allocates a CPU Time Slice to each thread, and the thread executes the task within the Time Slice allocated. A CPU time slice is a period of time, typically tens of milliseconds, that the CPU alloc ...

Posted by slough on Thu, 04 Jun 2020 10:52:49 -0700

Introduction to Docker foundation of kubernetes

Getting started with Docker Definition of container Stand alone processes running in user space Isolated from other user space programs A container runs in a separate user space At the bottom is a separate kernel space History of development FreeBSD jail, 2000 Linux VServer ,2001 CGroups NameSpace LXC Docker ,2010 libcontainer runC ...

Posted by fqservers on Mon, 01 Jun 2020 07:30:11 -0700

redis basic operation - string

1, Set the value of the specified key Commands: set Format: set key value 127.0.0.1:6379> set test_key test_value OK 2, Get the value of the specified key Command: get Format: get key 127.0.0.1:6379> get test_key "test_value" 3, For the string value stored in key, obtain the substring in the specified interval Command: ...

Posted by fatmikey on Sun, 31 May 2020 21:54:18 -0700

Teach you how to implement a Java based distributed lock service

In modern programming languages, programmers who have been exposed to multithreaded programming have a certain understanding of locks. In short, the lock in multithreading is a mechanism to ensure the consistency of shared resources when multiple threads modify shared resources in multithreading environment. We will not expand here. In the dis ...

Posted by cuboidgraphix on Mon, 18 May 2020 03:25:12 -0700

Install single node Redis

Forward link http://www.python3.vip/tut/webdev/django/17/ Installing Redis on Linux It is recommended to compile and install the source code, so that you can freely choose the Redis version to install. For example, on centos 7, log in as root and execute the following commands to download, decompress, compile and install wget http://downl ...

Posted by Hepp on Sun, 17 May 2020 03:31:23 -0700

CentOS? 7.6 install Redis 6.0.1 and enable auto start

background Alibaba cloud's ECS server just bought is going to set up a website of its own. First install the Redis service. Download Redis Download address: https://redis.io/download Current version of Redis 6.0.1 Upgrade gcc #Check whether the gcc version is above 5.3. CentOS 7.6 installs 4.8.5 by default [root@liukai-ecs-01 system]# gcc -v # ...

Posted by blueguitar on Thu, 14 May 2020 07:56:20 -0700

On Redis basic type Hash

Redis has five basic types: string, list, Hash, set and sorted set. This time, the common operations of Hash are listed. Redis official website: https://redis.io/    1, Hash introduction Hash is the basic type in Redis. A key corresponds to a set, in which a dictionary is formed in the form of field value. It can be understood that in a di ...

Posted by bmpco on Wed, 13 May 2020 18:07:39 -0700

zabbix alarm information aggregation and enterprise wechat reception

1. Code download address https://gitee.com/yyping2019/zabbix_police.git 2. Purpose of development This development is mainly based on the revision of the version described by the author, mainly adding the enterprise wechat receiving alarm, email receiving alarm, slack receiving alarm, and distinguishing different alarms to receive different al ...

Posted by tomdchi on Wed, 13 May 2020 08:34:31 -0700

Redis realizes distributed lock (design mode application practice)

I've seen all kinds of codes that use redis to implement distributed locks on the network. They are either wrong or fragmented. There is no complete example. Let me summarize two mechanisms of redis to implement distributed locks this weekend Spin lock and exclusive lock In view of the different ways of implementing locks, the policy pattern ...

Posted by Shiki on Sun, 10 May 2020 20:10:38 -0700

How to improve the reliability of RabbitMQ message consumption in human resource management system

Learn how to improve the reliability of RabbitMQ message consumption in human resource management system, and avoid repeated consumption of messages. 1 General stay How to improve the reliability of RabbitMQ message sending in human resource management system In this paper, we ensure the reliability of message sending. However, under such a mec ...

Posted by ijug.net on Sat, 09 May 2020 02:58:55 -0700