[JAVA] Application of delay queue
Recently, when developing the CRM management system, I encountered a demand: when using the system, the personnel of the sales department can "get" potential customer clues from the [clue public sea] module to their own [clue private sea] module to become their own private potential customer clues for later tracking and development. A ...
Added by L on Mon, 14 Feb 2022 06:31:43 +0200
Concurrent programming in python
Concurrent programming - panden's notes on concurrent programming in python
Serial, parallel and concurrent
[the external link image transfer fails. The source station may have an anti-theft chain mechanism. It is recommended to save the image and upload it directly (img-vcijuIAg-1644766841076)(./img / serial parallel and concurrent. png) ...
Added by Lenbot on Sun, 13 Feb 2022 18:01:04 +0200
c + + multithreading learning note 1 -- multithreading related concepts and simple example functions
Process: It can be simply understood as an executable program
Thread: A process can contain multiple threads, and there must be a main thread.
Differences and connections between processes and threads: 1) The process is the smallest resource allocation unit and the thread is the smallest program execution unit. Every time a new process is est ...
Added by whisher06 on Sun, 13 Feb 2022 04:57:16 +0200
[concurrent programming] explicit lock and AQS
Exclusive lock
Reentrant lock
In normal business work, reading and writing are more and less, and reading and writing are separated
Read write lock
Read thread - > read lock. Read lock is shared. Read lock is not excluded, but write lock is excluded
Write thread - > write lock, write lock exclusive, read and write mutually exclusive ...
Added by rashu.dr on Fri, 11 Feb 2022 22:07:49 +0200
I advise those students who have just joined the work: the sooner you know the five data types and usage scenarios of Redis, the better!! (complete case, recommended Collection)
This article comprehensively describes the five major data types and usage scenarios of Redis, including complete practical cases. It is recommended to collect!!
Hello, I'm glacier~~
Recently, there are a lot of small partners who have changed jobs in the interview, and the interview situation feedback to me is very different. However, many ...
Added by kendallkamikaze on Thu, 10 Feb 2022 15:40:58 +0200
ReentrantLock reentrant lock
Synchronized is called implicit Lock, also known as JVM Lock, because it holds and releases locks implicitly without developer intervention. Java 1.5 introduces a new locking mechanism, in which the implementation of the Lock is based on the Lock interface:
public interface Lock {
// Lock
void lock();
// Unlock
void unlock();
// The lock ...
Added by kjl-php on Mon, 07 Feb 2022 23:16:38 +0200
[concurrent programming] unbounded blocking queue DelayQueue based on priority queue
What is DelayQueue
DelayQueue is a blocking queue that supports delayed acquisition of elements.
The internal priority queue is used to store elements, and the elements must implement the Delayed interface;
When creating an element, you can specify how long the current element can be obtained from the queue, and the element can be extracted fr ...
Added by SnakeO on Fri, 04 Feb 2022 16:16:21 +0200
[concurrent programming] Introduction to blocking queue
What is BlockingQueue
BlockingQueue inherits the Queue interface and is a kind of Queue.
Blocking queue is a queue that supports two additional operations on the basis of queue. It is often decoupled.
Support blocking insert method put: when the queue is full, the queue will block the thread inserting elements until the queue is full.
take: wh ...
Added by dan231 on Fri, 04 Feb 2022 16:05:02 +0200
[concurrent programming] readwritelock ReentrantReadWriteLock from getting started to mastering the source code
What is a read-write lock?
When there is no write operation, there is no problem for multiple threads to read a resource at the same time. Multiple threads are allowed to read shared resources at the same time (reading can be concurrent).If a thread wants to write these shared resources, it should not allow other threads to read and write the ...
Added by Kaboom on Fri, 04 Feb 2022 15:46:08 +0200
JUC study notes
Shangsi Valley JUC source code teaching practical tutorial complete version (java juc thread intensive lecture)
1.volatile keyword and memory visibility
When the program runs, the JVM will allocate an independent cache for each thread executing tasks to improve efficiency.
The memory visibility problem is that when multiple threads operate t ...
Added by Minor Threat on Thu, 03 Feb 2022 00:08:56 +0200