CPC G06F 13/1642 (2013.01) [G06F 13/161 (2013.01); G06F 13/1689 (2013.01); G06F 13/28 (2013.01)] | 20 Claims |
1. A storage device comprising:
a nonvolatile memory device; and
a controller configured to receive a first submission queue doorbell and a second submission queue doorbell from an external device, and to fetch a first command in response to the first submission queue doorbell and fetch a second command in response to the second submission queue doorbell,
wherein the first command includes a first latency, and the second command includes a second latency,
the controller is configured to determine a first timing to write a first completion into the external device based on the first latency and a second timing to write a second completion into the external device based on the second latency, the first completion indicating that the first command is completely processed, the second completion indicating that the second command is completely processed, and
the controller is configured to determine an order that the controller processes the first command and the second command based on the first latency and the second latency.
|