Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard drive (and other devices) access for processes. #135

Open
MinusPL opened this issue Feb 17, 2023 · 0 comments
Open

Hard drive (and other devices) access for processes. #135

MinusPL opened this issue Feb 17, 2023 · 0 comments
Labels
bug Something isn't working critical This one needs to be resolved as quickly as possible enhancement New feature or request question Further information is requested
Milestone

Comments

@MinusPL
Copy link
Collaborator

MinusPL commented Feb 17, 2023

Currently MicrOS is not allowing people to use devices for everyone.
For example when we have two processes A and B, and A requests data to be read (let's say 100 MB) it will block hard drive completely for some time.
If however process B also requests data from drive it will send yet another command to drive. With one sector reads it was fine, but now it can and most likely will cause alot of problems with synchronization of many processes.
Suggested fix for that problem is to create read/write operation queue for disk devices. Some part of kernel or driver will then dequeue such operations and focus on them also blocking other processes from requesting data while operation is in progress.
Otherwise we might end up with incomplete data or even load data that we're not supposed to get.

Other devices which are also not designed for multiple access should implement such things.

Any suggestions are welcome.
Target for this issue is MicrOS 1.4 Release. That's because right now there is no process that should read from disks built in.

@MinusPL MinusPL added bug Something isn't working enhancement New feature or request question Further information is requested critical This one needs to be resolved as quickly as possible labels Feb 17, 2023
@MinusPL MinusPL added this to the MicrOS 1.4 milestone Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical This one needs to be resolved as quickly as possible enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant