Processes and threads
Processes and threads
A process (. exe) contains multiple threads, which occupy the resources of process memory Why? It's like QQ can type and chat with others while video
There is a picture and a truth
example
Write a Java The program implements multithreading. The name of the thread is output in the thread. It is output once in 1000 ...
Posted by baseballkid420 on Sat, 20 Nov 2021 00:10:45 -0800
SpringMvc -- request forwarding and redirection
Request forwarding and redirection for spring MVC
1. Request forwarding of spring MVC -- thymeleafView
thymeleafVIew view
If the return value [view name] of the method processing the request is not prefixed, this view will be parsed by the view parser configured by spring MVC. This view is a thymeleaf view. As for why there is such a distinc ...
Posted by cwspen on Sat, 20 Nov 2021 00:03:04 -0800
laravel implementation order list
First, you need to create an order table
Create the database migration file when creating the model
php artisan make:model Order -m
Perfect database fields
public function up()
{
Schema::create('orders', function (Blueprint $table) {
$table->id();
$table->integer('user_id')->comment('User placin ...
Posted by sabatier on Sat, 20 Nov 2021 00:01:59 -0800
Detailed explanation of single case mode
summary
Singleton mode: in the whole system, only one instance object of a class can be obtained and used
Key points:
Private constructorCreate object inside classProvide static methods for obtaining instances externally
Hungry Han style
Common way
Hungry Chinese style: when the class is loaded, create the object directly, which is thread ...
Posted by mzfp2 on Fri, 19 Nov 2021 23:37:05 -0800
Python e-commerce platform shopping data analysis, overall sales analysis (line chart, pie chart analysis) source code download
Development environment:
Development environment: Python 3 Tools: pandas, matplotlib.pyplot
Data source:
Data address: data set Data Description: a total of 28010 pieces of data occurred in one month were collected in this data set, Include the following: ['order number', 'total amount', 'buyer's actual payment amount', 'receiving address' ...
Posted by redgtsviper on Fri, 19 Nov 2021 23:18:42 -0800
Three auxiliary classes of JUC
scene
Three commonly used auxiliary classes are provided in JUC. These auxiliary classes can well solve the frequent operation of Lock lock when there are too many threads. The three auxiliary classes are: • CountDownLatch: decrease count • CyclicBarrier: Circular barrier • Semaphore: signal light
Decrease count CountDownLatch ...
Posted by Akenatehm on Fri, 19 Nov 2021 23:13:35 -0800
Detailed explanation of structure
Today, let's talk about structure
Why structure
Because in practical problems, a group of data often has many different data types. For example, to register student information, you may need to use char type name, int type or char type student number, int type age, char type gender, and float type grade. For another example, for recording ...
Posted by gethinw on Fri, 19 Nov 2021 23:13:09 -0800
Mysql learning Day3 DML language knowledge
Data management of MySQL
1.DML language (very important)
The meaning of database: data storage and data management
DML: Data Manipulation Language
insertupdatedelete
2. Foreign keys
Method 1: add constraints to the primary key when creating a table (more complex)
CREATE TABLE `grade`(
`gradeid` INT(10) NOT NULL AUTO_INCREMENT CO ...
Posted by kharbat on Fri, 19 Nov 2021 23:01:57 -0800
The algorithm inserts sorting Dongtian and Hill sorting cycle into small code farmers
sort
The concept and application of sorting
Sorting concept
==Sorting: = = the so-called sorting is the operation of arranging a string of records incrementally or decrementally according to the size of one or some keywords. ==Stability: = = if there are multiple records with the same keyword in the record sequence to be sorted, th ...
Posted by sseeley on Fri, 19 Nov 2021 23:00:47 -0800
Analysis of Spring event monitoring principle
1. Introduction to spring event monitoring
The Spring framework provides a set of event publishing and listening mechanism. For developers, they can publish events as long as they hold the ApplicationContext instance, and they can receive and process events as long as they implement the ApplicationListener interface. A typical use example ...
Posted by TitanKing on Fri, 19 Nov 2021 22:50:36 -0800