Chapter 13

  1. False. Queues create a definitive interface, which decouples components from one another.
  2. False. Any datatype can be placed into a queue.
  3. No, omitting the underlying formatting allows more flexibility for the producers of items to be queued. If the data isn't tied to a specific format, the format can be modified without affecting the queue or the consumer of data coming out of the queue.
  4. Possible answers include the following:
    • A queued item's lifetime doesn't need to be taken into consideration since a copy of it is made. 
    • The queued item's scope doesn't need to be taken into account if it is passed by value into the queue. 
    • If an item is passed by reference, a clear understanding of who owns the item is necessary, as well as who is responsible for freeing the resources associated with it.
  5. Possible answers include the following:
    • Latency introduced by deep queues
    • Non-deterministic behavior caused by requests sitting in a queue instead of being immediately executed (or rejected)
    • Memory constraints
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.160.216