![]() |
.. (לתיקייה המכילה) | |
Can I assume that if a request with id x was en-queued, then no request with id y such that y is lower than x will be en-queued after request x? | |
No, you may not assume that. |
Are we guaranteed that if we lower the priority of all assignments with ids lower than x (using LowerOldRequestsPriority method) we will not receive any new assignments with ids lower than x? | |
No, you may not assume the above. Even after preforming LowerOldRequestsPriority(x, delta), it might be the case that new requests with ids lower than x will be en-queued. These requests of course should not be affected by this LowerOldRequestsPriority(x,delta) method call. |
If I use the method LowerOldRequestsPriority with input id x, but there is no request in the system with id equal to or less than x, what should I do? | |
In this case you should not preform any update and just return success. |
In the KillServer method, in case serverId==newServerId, what value should we return? | |
In this case you should return INVALID_INPUT. |