At the university where I work, I engineered a solution to offload the process management of a rails app's mailserver jobs to be done by the Ubuntu operating system. This was in order to get around an issue where resources were not being released by the rails gem involved when it concluded with jobs, filling up the system memory with needless allocations to the gem. I reworked the jobs so that the system spawned a new process whose memory allocation and process scheduling were handled by the operating system instead, allowing the system's process supervisor to more efficiently handle memory resources at the small cost of the additional overhead of spawning a separate process instead of threading a single process.