Тёмный

Linux on Amiga: Executive turns Amiga Exec Kernel into Linux -  

8-Bit Retro Journal
Подписаться 1,4 тыс.
Просмотров 1,1 тыс.
50% 1

In this journal entry, for #AMayGA20204, I follow up on my April 1st video a month earlier where I tried to figure out priorities in AmigaOS. Turns out that things didn't work as expected and the reason is that the Exec kernel may be doing real-time priorities, where a task can get 100% control of the CPU if its priority is higher than everyone else. To fix this, there is Executive, a program that augments the Exec kernel and gives Linux-like process control to Amiga tasks. It's a pretty neat tool and I'll demonstrate how it works.
#Amiga #Exec #Kernel #Executive #Linux #UNIX #Multitasking #QL #Retro
Index
00.05 Introduction
02:15 How priorities work in Linux
04:15 Interrupts? Example of QL file handling disrupting kernel
07:20 Linux real-time priorities
09:05 Windows priorities
10:00 Executive Installation on Amiga
13:15 Quick overview of Executive features
14:35 Showing how Executive controls jobs
19:04 Setting "nice" values
21:30 Executive' utilities included
24:30 Wrapping up

Наука

Опубликовано:

 

15 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@_chrisr_
@_chrisr_ Месяц назад
With regard to interrupts this will depend on the CPU but the operating system will register interrupt service routine addresses for code that will deal with a given interupt. When the interrupt occurs the CPU will deal with it immediately (again the precise details are cpu specific) and run that ISR code. The ISR code will have to deail with the nature of the interrupt and might deal with it then and there or (in the case with windows) they get queued up and dealt with at a different level of the OS through the driver code). This approach allows for drivers to be written to run in user mode rather than kernel mode - user mode drivers don't have access to memory directly and have a virtual address space which makes for a more robust operating system as a user mode driver can't crash the system (in theory).
@vertigoz
@vertigoz Месяц назад
I remember having my imagine 3d locking my A1200, but there was a program rhat allow to lower its priority, after setting its priority lower it was like it wasn't even running (it rendered with only a few seconds more but the rest of the computer worked as if ot wasn't running)
@fra4455
@fra4455 Месяц назад
Great👍
@_chrisr_
@_chrisr_ Месяц назад
With Windows the priorities are only used when there is competition for CPU resource - most of the processes on a Windows machine are background processes that only do stuff when responding to an other event (e.g. a timer or when triggered through the actions of another process (like a virus checker). Processes that are active - e.g. your browser still have downtime whilst they are waiting for other stuff to happen - e.g. responses to network requests or perhaps writing to disk etc. The scheduler takes into account whether a process needs to be executed at a specific point in time - the kernel will wake a process back up when a call to the kernel is completed and the process (well thread) can continue. Where you have a thread that is actively doing something where it will keep consuming cpu cycles without creating gaps (perhaps a complex calculation) then this is where priorities come in - theads with higher priorities will be allocated a greater amount of run time compared to processes with lower priority. Realtime is a special priority which was for real time code which is sensitive to timing - an attempt by microsoft to try to lure realtime system designers to use windows rather than dedicated hardware. Setting the wrong type of process to realtime can hang the system as the operating system doesn't get to run it's processes until the realtime process completes.
@8BitRetroJournal
@8BitRetroJournal Месяц назад
Thanks for that detailed rundown on Windows. I did try and set Notepad to real-time to see what would happen (I was prepared for the crash) but it neverallowed that,e even with me as admin.
@_chrisr_
@_chrisr_ Месяц назад
@@8BitRetroJournal I just tried it on my Win10 machine and it worked fine. Notepad is safe (I would hesitate to try loading or saving a large file though!) as it's mostly waiting around for windows messages to handle. Most windows programs spend their time in an infinite loop which calls GetMessage() over and over which is a blocking API call that gets the next windows message to process, when a message arrives (like a keypress or mouse etc) the that function returns and the program can deal with it before waiting for the next message. The scheduler won't allocate any CPU cycles to that thread whilst it is waiting.
@8BitRetroJournal
@8BitRetroJournal Месяц назад
@@_chrisr_ Thank you for giving it a try. For some reason, on Windows 7, as user with admin privileges, it would not let me set it. I'm very familiar with event loops as I hacked the Mac kernel back in the day (early 90s) to add pseudo scheduling control. I had to grab the event handler and then control it differently from the plain old round robin scheme that the Mac OS was using. This was pre-BSD obviously, when Apple had written their own kernel (in Pascal of all languages).
@_chrisr_
@_chrisr_ Месяц назад
@@8BitRetroJournal I was able to set it on my Win7 VM too - but you have to either launch taskmgr.exe with elevated rights or elevate it by clicking on the "Show processes from all users" button before the realitime priority can be set.
@8BitRetroJournal
@8BitRetroJournal Месяц назад
@@_chrisr_ Yup, running as administrator worked and yup, nothing to interesting happened. I ran a RU-vid video in the background and used Notepad to repeat letters and nothing...very deflating but expected since you don't want Windows to be freezing due to priorities.
@ifrit05
@ifrit05 Месяц назад
I have trust issues with you 😂
Далее
Linux on Surface Go
17:48
Просмотров 3,8 тыс.
Regular Season vs. PLAYOFFS part 2 #pavelbarber
00:14
Bazzite on My MAIN PC
1:23:22
Просмотров 34 тыс.
Commodore Amiga OS 3.2.2 update in 2023
18:43
Просмотров 17 тыс.
Holographic transparent flexible LED panel.
0:20
Просмотров 3,3 млн
keren sih #iphone #apple
0:16
Просмотров 1,6 млн