20165219 2017-2018-2 "Java Programming" Week 8 Learning Summary

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 Threadclass to create the thread object directly

Using Runnableinterfaces is Threadmore flexible than using subclasses

thread synchronization

Several threads use a synchronizeddecorated method. Multiple threads calling synchronizedthe 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 . ②④

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324694430&siteId=291194637