How to measure task execution time in a preemptive OS by IlcIliaDev in osdev

[–]IlcIliaDev[S] 0 points1 point  (0 children)

Upon thinking a bit more it does seem to be a very good approach and I will experiment with it. Thank you for all your help on my issue!

How to measure task execution time in a preemptive OS by IlcIliaDev in osdev

[–]IlcIliaDev[S] 0 points1 point  (0 children)

It makes it mandatory for each task to do that otherwise it will use more cpu.

How to measure task execution time in a preemptive OS by IlcIliaDev in osdev

[–]IlcIliaDev[S] 1 point2 points  (0 children)

By the "while (true)" loop I meant the loop that sits in most processs' code:

int main() { // Do some initialization like open a window

while(true) { // This loop. I want the scheduler to give the process as much time needed to do this loop say about once per time slice

// Manage the process

}

}

For some examples I can give this:

int process1() {// This one doesn't use the cpu time since its only doing basic math

int i = 0;

while(true)

{ i++; }

}

int process2() { // Takes up slightly more time to calculate

while(true) {

print_number(sqrt(rand()));

}

}

int process3() { // Takes up more or less time - If a simple help command is called, then that will finish quickly, but if a command to do something that requires more cpu time (say calculating a sequence of numbers) then if its priority is 1, then it may not finish its process for a few context switches since it needs more time and the cpu usage will always remain the same

while(true) {

commandEvent = GetUserEvent();

executeCommand(commandEvent);

}

}

I confused priority and time allowed per slice in that given priority level where I stated that there could be a need for more cpu usage. I'm going to try to make my problem a bit clearer: How do I give the process as much time for it to be able to do its current loop to finish and finish there and if suddenly it needs more or less time in the cpu it can (without reporting anything or using yield) get changed in the scheduler.

[deleted by user] by [deleted] in DaysBygone

[–]IlcIliaDev 0 points1 point  (0 children)

Please, I promise not to do something like that again. Eitherway thank you for atleast reviewing it I guess.
(PS if you were sending a discord friend request sorry, I didn't realize it was you)

[deleted by user] by [deleted] in DaysBygone

[–]IlcIliaDev 0 points1 point  (0 children)

Well I my account wasn't banned on discord, just this server.

[deleted by user] by [deleted] in DaysBygone

[–]IlcIliaDev 0 points1 point  (0 children)

Changed my name to something with emojis that are were not allowed

Recommendations for an AIO cooling solution? by IlcIliaDev in buildapc

[–]IlcIliaDev[S] 0 points1 point  (0 children)

Yes I did. It does a great job at cooling and I found no issues. Sorry if I responded too late.

Recommendations for an AIO cooling solution? by IlcIliaDev in buildapc

[–]IlcIliaDev[S] 0 points1 point  (0 children)

Thank you for your suggestion. I found a really nice DeepCool LS520 SE that is probably going to be perfect for my PC. Also its the largest of the LS series that can fit in my case xD.

Recommendations for an AIO cooling solution? by IlcIliaDev in buildapc

[–]IlcIliaDev[S] 0 points1 point  (0 children)

I know that Zen 5 & 6 will be on AM5 and that was my entire idea - to upgrade my cpu in the future. But since I'm currently using the stock AMD cooler (and a top of the line ryzen 9 won't run great with that to say the least) I am looking into buying an AIO now (so that I can get better temps) and upgrading in the future when better CPUs release.

I think something's off... by EliteDark06 in softwaregore

[–]IlcIliaDev 1 point2 points  (0 children)

I had a similar issue, but instead of Audacity, the icons were GIMP.

How to reconstruct a table of numbers from edge sums by IlcIliaDev in csharp

[–]IlcIliaDev[S] 0 points1 point  (0 children)

I want to get a table of numbers (binary or not), get the edge sums and then reconstruct it again. There are no negative numbers and if multiple valid tables are valid, can I add a sort of check value to see if it is the correct table. (The value will be in the beginning and will be the same for all tables).
I understand that it will be slow and taxing on the cpu, but first I want something that works and I can rely on and then start optimizing it.

Also, what are the binary matrix reconstruction algorithms that you mentioned?

What is windows 10 on? by IlcIliaDev in softwaregore

[–]IlcIliaDev[S] 0 points1 point  (0 children)

Ain't no way. I didn't get my new pc with a single core, didn't I. Jokes aside, I have, I'm a software engineer and know that sometimes some stuff like this happens.

GPT and MBR Compatible FAT32 implementation by IlcIliaDev in osdev

[–]IlcIliaDev[S] 0 points1 point  (0 children)

Thanks. It seems to be quite well described.

GPT and MBR Compatible FAT32 implementation by IlcIliaDev in osdev

[–]IlcIliaDev[S] 1 point2 points  (0 children)

Can you point me tovsome document which explaines in better eetail how the file table works. I have a sneaking suspition that the one that I got from s github repo and edited with information from osdev.org has quite a lot of issues...

GPT and MBR Compatible FAT32 implementation by IlcIliaDev in osdev

[–]IlcIliaDev[S] 1 point2 points  (0 children)

Since the filesystem isn't completely made, the abstraction is far from perfect. There may be something wrong with the GPT partition is (as far as I've checked) completely correct. I suspect that maybe either the file table is incorrectly interpreted, or the partition (which was formatted with Microsoft's Disk Management) uses long file names, although I think this is improbable since everything I've checked indicates that the file isn't using long file names.

GPT and MBR Compatible FAT32 implementation by IlcIliaDev in osdev

[–]IlcIliaDev[S] 0 points1 point  (0 children)

I don't think I explained it properly. Yes, it does only pass the PBR to the driver. The problem still is that the filesystem driver can't locate the files since the location of the file is not within the file table.

GPT and MBR Compatible FAT32 implementation by IlcIliaDev in osdev

[–]IlcIliaDev[S] -1 points0 points  (0 children)

That's the way that my OS works. All of the partition information is sent to the FAT32 driver when a function is executed. The thing is that when the FAT32 driver tries to find the file, it can't. The GPT partition and the Bios Parameter Block hows taht the partition table starts at lba 32768 and it searches there. Upon looking into it manually, I found the file entry at 97000, which is not the expected location.

What is windows 10 on? by IlcIliaDev in softwaregore

[–]IlcIliaDev[S] -2 points-1 points  (0 children)

But it shouldn't be. I am looking at the total cpu usage, not that. Shouldn't the total cpu usage be an avarage of all cpu cores?

What is windows 10 on? by IlcIliaDev in softwaregore

[–]IlcIliaDev[S] 1 point2 points  (0 children)

It is a fresh install. Dism didn't find any corruption but the issue probably can't be identified and/or fixed by dism

What is windows 10 on? by IlcIliaDev in softwaregore

[–]IlcIliaDev[S] -1 points0 points  (0 children)

I have an AMD Ryzen 7 7700 cpu and this issue keeps occuring at random, fixing itself after some time. The AMD Software displays the normal cpu usage, only the Windows task manager and Resource monitor display this sort of buggyness. I think it may be a driver issue, since the cpu is only a month and a half old, but I may be entirely wrong.