printf(”ERROR: Invalid mm on OS %s\n”, __ILLUSIONOS__);
Today I found out that I’m still going to have to do work to IllusionOS’s memory manager to get multitasking up because the current one won’t take into account of each process’ address space. I’m not sure what to do here, completely rewrite the thing or adapted it. I may try to adapt it to the current system, but either way it won’t be easy for me. If there is one think I suck at, it’s writing a memory manager. This made me very depressed for some reason.
A few round of Counter-Strike:Source later and I was fairly undepressed, but felt like I needed to accomplish something. So I started working on JayantHTTPD again. I finally got the rewrite listening for connections now via my custom libserver.so. I finally decided how I’m going to handle the connections after reading up on pthreads. They really aren’t too complicated, and as long as I don’t need Windows support, work on basically every OS. Right now libserver creates a thread with a callback specified to that file descriptor, but you may also have a custom connection handler for you application. So basically the server will hand out connections via a thread instead of forking.
Support me! Buy this. I’ll be using the money from these to rebuild my SGI 1100. :)
P.S. If you were wondering what pthreads page I was reading, check this out.
Del.icio.us
Digg