20165219 2017-2018-2 "Java Programming" Week 8 Learning Summary
Textbook learning content summary
process and thread
A thread is a smaller unit than a process; threads can share certain memory units in a process
java multithreading mechanism
Thread class and thread creation
One way to create a thread is to use the Thread
class to create the thread object directly
Using Runnable
interfaces is Thread
more flexible than using subclasses
thread synchronization
Several threads use a synchronized
decorated method. Multiple threads calling synchronized
the decorated method must obey the synchronization mechanism.
thread union
When a thread A occupies CPU resources, it can let other threads call join()
methods to associate with this thread
code hosting
Wrong last week
The interface RowSet inherits the interface __, and the method __ in RowSet can be called to fill its data area.
①Statement
②ResultSet
③update
④populate
A . ①③
B . ①④
C . ②③
D . ②④