Category : linux

I’ve been looking at a guide for writing a bootloader. Original: https://www.apriorit.com/dev-blog/66-develop-boot-loader Copy: https://www.codeproject.com/Articles/36907/How-to-develop-your-own-Boot-Loader I love that the design they employ is able to do the bare minimum in asm and then use C/C++ for the rest of it. (I’m sure if things were more complex that 100% of well written assembly would be better, ..

Read more

In Windows Internal 7th Edition – Book following text is Mentioned Under Windows Kernel Architecture Device drivers -This includes both hardware device drivers, which translate user I/O function calls into specific hardware device I/O requests, and non-hardware device drivers, such as file system and network drivers. Can anyone please elaborate on hardware device drivers and ..

Read more

I’ve been doing a research on how window events handling works on different operating systems, and with Windows/X11 the algorithm for implementing it looks like this in pseudo-API: while(true) { Event event = GetNextEvent(); HendleEvent(event); } Where enum has a type field that defines what kind of enum that is (window close, window resize etc). ..

Read more

Update: I was correct, running the code in the answers I got (in macos): returned getpid()=9390 vs. syscall(39)=8340 which is really strange. Update2: in ubuntu I got same pid for both, why is that? I read that syscall(39) returns the current process id (pid) Then why these 2 programs output 2 different numbers? int main() ..

Read more

I am trying to implement Sequence alignment problem (Needleman-Wunsch algorithm) using p-Threads. I am confused how to map the concept of multi threading in this particular serial problem. The code of serial computation of sequence alignment is enclosed below.(Just Matrix calculation part) #include<iostream> #include<string.h> #include<string> #include<algorithm> using namespace std; class Matrix { private: int x; ..

Read more