20165219 2017-2018-2 "Java Program Design" 8th Week study summary Textbook learning content summary process and threads
A thread is a smaller unit than a process, and some memory units in a process can be shared between threads
Java's multi-line mechanism thread class and thread creation
One way to create a thread is to Thread create the thread object directly with the class
Using Runnable interfaces is Thread more flexible than using subclasses
Thread synchronization
A synchronized modified method is used for the main thread. Multiple threads calling synchronized a decorated method must follow the synchronization mechanism.
Thread Federation
While a thread A is consuming CPU resources, it is possible for other threads to call join() methods and this thread to federate
Code Hosting
The wrong question last week
Interface rowset inherits the interface __ and can call the method __ in rowset to populate its data area.
①statement
②resultset
③update
④populate
A. ①③
B. ①④
C . ②③
D. ②④
20165219 2017-2018-2 "Java Programming" 8th Week study Summary