The invention relates to a method of writing data to and reading data from a
memory (102) by a host. By limiting processing time, time restrictions regarding
the data to be processed can be met. However, this is at the expense of data integrity.
By setting time limits for a group (300) of multiple processing assignments
and dynamic allocation of time, reserved for error recovery and retries, data integrity
can be improved, while time limits can still be met. Furthermore, by attaching
priorities to the assignments, multiple types of data can be handled in one group
of assignments. For example, assignments with real-time requirements can be put
in a group with assignments with best effort requirements. In this way, more flexible
planning of processing assignments is possible. The invention also relates to a
system for writing data to and reading data from a memory.