20165219 2017-2018-2 "Java Programming" 8th Week study Summary

Source: Internet
Author: User
Tags thread class
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.