JAVA SE high-level language study notes -03.Java -05- abnormal and multithreading - the first two threads implementation

Concurrency and parallel 1_7_2_01_ .avi

Here Insert Picture Description
1_7_2_02_ process concept .avi

Here Insert Picture Description
1_7_2_03_ thread concept .avi

Here Insert Picture Description
1_7_2_04_ thread scheduling .avi

Here Insert Picture Description

Wherein the scheduling priority can be modified

windows modified as follows:

Here Insert Picture Description
1_7_2_05_ main thread .avi

Here Insert Picture Description
Here Insert Picture Description

1_7_2_06_ create multi-threaded programs _ the first way to create .avi

Here Insert Picture Description

1_7_2_07_ multi-threading principles _ randomness print results .avi

Here Insert Picture Description

1_7_2_08_ principle of multi-threaded multi-threaded memory _ graphic .avi

run method separate thread of execution will not open up new stack space, create a new thread, but a bit run separate execution method inside

Here Insert Picture Description

1_7_2_09_Thread class _ common method to obtain thread name .avi

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Common method 1_7_2_10_Thread class _ set thread name .avi

Here Insert Picture Description
Here Insert Picture Description
Common method 1_7_2_11_Thread class _sleep.avi

Here Insert Picture Description
1_7_2_12_ create multi-threaded programs _ The second way to achieve .avi

Interface implemented by, there is only one run method, and rewrite it to achieve
Here Insert Picture Description

Here Insert Picture Description
The difference 1_7_2_13_Thread and Runnable .avi

We recommend to make use of the interface Runnable way to achieve multi-threaded
Here Insert Picture Description

1_7_2_14_ anonymous inner class manner create .avi thread

Here Insert Picture Description
Here Insert Picture Description

Published 168 original articles · won praise 39 · views 110 000 +

Guess you like

Origin blog.csdn.net/u010481276/article/details/104936498