Ammar Chohan
MSc Finance and Investment






















Implementing malloc
malloc is a function in C programming language to allow programmers to request for memory allocation. To understand how malloc and free works, I sucessfully simulated small version of malloc called smalloc. This program together with asking for memory from already allocated memory frees memory space after use. To review full code, please click here.
Processes and Pipes
Used concepts of pipes and processes in c to create own shell program. Made successful use of fork system call to instantiate new processes and subsequently call exec functions to execute user command and output results to user defined destination if given or to standard out or standard error. Code available on github.
Network Programming
This project was done to allow multiple users on same network to connect and play together. A server was setup through series of system calls and a listening port was setup on which new players were being listened. I made use of struct to keep details of individual players. Once a game finishes, both same players were not allowed to be matched again until at least one player has played with another different player. Here is full details on github.







