CISC181 Study Guide - Final Guide: Javafx, Complex Instruction Set Computing, Comparator

63 views6 pages

Document Summary

Has the methods . clone(), . retainall(), add(), and addall() Hashmap- if you want to retrieve data by keys, you would use hashmap. If you try to add a duplicate item, it is ignored (no exception is thrown) Each entry has a key and a value. **anything to do with key and value is a map** **sort order and position tree does this** Priorityblockingqueue -chiefly used when threads need to communicate. One thread acts as a producer", the other consumer" Objects are placed on a queue, and consumed in a particular order (usually set with comparator) If the queue is full, the consumer will wait until there is an item the producer until there is space. **priority means sort** **blocking means wait** take() -method consumes" items. Will not throw an exception if no items to consume. Threading t1. join(2000) - join waits for the t1 to finish. Data is not expected to be updated by the user.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions