Describe the necessary modifications to the Task Bag interface to allow callbacks to be used.
What will be an ideal response?
The server must allow each client to register its interest in receiving callbacks and possibly also deregister. These operations may be added to the TaskBag interface or to a separate interface implemented by the server.
```
int register (in TaskBagCallback callback);
void deregister (in int callbackId);
```
You might also like to view...
Write a method called alarm that prints the string "Alarm!" multiple times on separate lines. The method should accept an integer parameter that specifies how many times the string is printed. Print an error message if the parameter is less than 1.
What will be an ideal response?
The ________ is part of the processor that manages the movement of data through the CPU
a.arithmetic logic unit b.control unit c.data bus d.peripheral device
A Function procedure declaration must define what type of data it will return when it is called.
Answer the following statement true (T) or false (F)
An advantage of an external modem is
A) Less expensive than internal modems B) Come with its own UART C) Can easily connect to a different computer without taking the computer apart D) All these answers are true.