当前位置:网站首页>Lost in the lock world of MySQL
Lost in the lock world of MySQL
2022-07-04 22:35:00 【ImportNew】
( to ImportNew Plus star , Improve Java Skill )
1. drinks
This is a drink .
This is a 3 A drink , Every drink tastes different .
But humans don't call 【 drinks 】 by 【 drinks 】, It's called 【 drinks 】 by 【 Record 】.
2. Red Octopus
This red one , A guy who looks like an octopus , We call it the red octopus ~
Red octopus is divided into head and tentacles .
Red octopus has tentacles , And it can have any tentacle .
Red Octopus loves drinks , Put your tentacles in the cup and you'll get the drink .
Red Octopus put different tentacles into different cups , You can drink more than one drink at the same time .
More than one red octopus can appear at the same time .
But the red tentacles that are drinking will repel other tentacles , That is, a drink can only have one red tentacle at most .
First come, first serve , Later tentacles have to line up .
There can be more than one red octopus in the same drink In order Waiting in line .
Red octopus is obsessed with the feeling of sucking multiple drinks at the same time , So all its tentacles are either waiting , Or they're all drinking .
in other words , If one of the red octopus tentacles is in line , Then its other tentacles have to line up as well , Even drinks that nobody drinks have to line up .
Drinks with tentacles in line but without tentacles , It can still be drunk by other Octopus later .
But humans don't call 【 Red Octopus 】 by 【 Red Octopus 】.
Human appellation 【 The head of the red octopus 】 by 【 Intention exclusive lock 】;
Human appellation 【 A red tentacle drinking a drink 】 by 【 Exclusive record lock 】.
3. Green Octopus
These are green Octopus .
Most of the characteristics of green octopus are identical to those of red octopus , Except for one thing. : Green octopus tentacles are willing to share drinks with other green tentacles .
Because red octopuses don't share drinks with octopuses of any other color , And green octopus will only share drinks with green Octopus ,
So red octopus and green Octopus don't drink the same drink at the same time , Later, we have to wait in line .
According to the above rules , Red and green octopus can form many states . Here's one , The numbers indicate the order in which they came .
But humans don't call 【 Green Octopus 】 by 【 Green Octopus 】,
Human appellation 【 The head of the green octopus 】 by 【 Intention sharing lock 】;
Human appellation 【 Green tentacles drinking drinks 】 by 【 Shared record lock 】.
4. clearing
in fact , Drink cups are not always adjacent , There may be space between them .
No matter how far away the two cups are , If there are no other drinks between them , Let's say that there is the same space between the two drink cups .
The left side of the leftmost Cup , The right side of the rightmost Cup , It's still open space .
For Octopus , Except for the tentacles of drinking , Sometimes they have extra tentacles , They will be in ` When drinking drinks ` Put the extra tentacles on the empty space between the cups to rest .
Because there's nothing in the open space , Tentacles in the open space don't have to rush for drinks , So the red and green tentacles in the open space can coexist peacefully .
But humans don't call 【 clearing 】 by 【 clearing 】,
Human appellation 【 clearing 】 by 【 The gap between records 】;
Humans don't call those either 【 Tentacles in the open space 】 by 【 Tentacles in the open space 】,
Human appellation 【 Tentacles in the open space 】 by 【 Clearance lock 】;
If an octopus reaches into a drink and sucks , Just put the other tentacle on the left side of the drink to rest , So humans will call these two tentacles one 【 Temporary key lock 】.
5. Black tentacle
There is another kind of red octopus in this world , This red octopus has black tentacles .
Black tentacles are different from red and green tentacles , Black tentacles can't drink .
But the black tentacle has an adverse function , When the black tentacles touch the open space , At the point of contact, a drink will be produced out of thin air !
Because black tentacles can create Octopus favorite drinks , So other octopus are obsessed with black tentacles , When the black tentacles touch the open space , Other tentacles don't come to disturb .
Black tentacles will only land in the open space without other tentacles .
A red octopus with black tentacles , You can put more than one tentacle in the same open space ( If there is enough space ).
You can also place multiple tentacles in different open spaces at the same time .
But humans don't call 【 Black tentacles on the open space 】 by 【 Black tentacles on the open space 】,
Human appellation 【 Black tentacles on the open space 】 by 【 Intention to insert lock 】, And think it's 【 Clearance lock 】 A kind of .
6. laser
Here's a red laser , Across all the cups .
The red laser is very hot , Red octopus and green octopus will be burned when they meet red laser , So in the presence of the red laser , The octopus are hovering above and dare not come down .
On the other hand , Without any tentacles on the drink glass or empty space , Red laser is possible .
This is a green laser .
The green laser is softer , The green thing can pass through the green laser without damage , So the green octopus is not affected by the green laser .
in fact , A green laser can produce multiple lines at the same time , And the red laser has at most one , And red and green lasers don't exist at the same time .
But humans don't call 【 Red laser 】 by 【 Red laser 】, Human appellation 【 Red laser 】 by 【 Lock the watch 】.
Humans don't call 【 Green laser 】 by 【 Green laser 】, It's called 【 Green laser 】 by 【 Shared table lock 】.
from :MCTW
link :https://www.cnblogs.com/duck-and-duck/p/14713827.html
- EOF -
Dig three feet Redis And MySQL Data consistency issues
After reading this article, there are gains ? Please forward to share with more people
Focus on 「ImportNew」, promote Java Skill
Praise and watching is the greatest support ️
边栏推荐
- Logo special training camp Section IV importance of font design
- Unity修仙手游 | lua动态滑动功能(3种源码具体实现)
- More than 30 institutions jointly launched the digital collection industry initiative. How will it move forward in the future?
- Implementation rules for archiving assessment materials of robot related courses 2022 version
- Logo Camp d'entraînement section 3 techniques créatives initiales
- Locust performance test - environment construction and use
- 我在linux里面 通过调用odspcmd 查询数据库信息 怎么静默输出 就是只输出值 不要这个
- La prospérité est épuisée, les choses sont bonnes et mauvaises: Où puis - je aller pour un chef de station personnel?
- High school physics: linear motion
- Mysql root 账号如何重置密码
猜你喜欢
Logo special training camp section II collocation relationship between words and graphics
蓝队攻防演练中的三段作战
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
Logo special training camp section III initial creative techniques
Kdd2022 | what features are effective for interaction?
Convolutional neural network model -- lenet network structure and code implementation
PMO: compare the sample efficiency of 25 molecular optimization methods
Scala download and configuration
TLA+ 入门教程(1):形式化方法简介
LOGO特训营 第五节 字体结构与设计常用技法
随机推荐
Service online governance
关于栈区、堆区、全局区、文字常量区、程序代码区
Mysql root 账号如何重置密码
Google Earth Engine(GEE)——以MODIS/006/MCD19A2为例批量下载逐天AOD数据逐天的均值、最大值、最小值、标准差、方差统计分析和CSV下载(北京市各区为例)
sqlserver对数据进行加密、解密
In Linux, I call odspcmd to query the database information. How to output silently is to only output values. Don't do this
[the 2023 autumn recruitment of MIHA tour] open [the only exclusive internal push code of school recruitment eytuc]
力扣2_1480. 一维数组的动态和
How to manage 15million employees easily?
【愚公系列】2022年7月 Go教学课程 003-IDE的安装和基本使用
md5工具类
LOGO特训营 第三节 首字母创意手法
Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies
SPSS安装激活教程(包含网盘链接)
A large number of virtual anchors in station B were collectively forced to refund: revenue evaporated, but they still owe station B; Jobs was posthumously awarded the U.S. presidential medal of freedo
制作条形码的手机App推荐
Force buckle 3_ 383. Ransom letter
Shell 脚本实现应用服务日志入库 Mysql
How to reset the password of MySQL root account
Force buckle_ Palindrome number