CPU SCHEDULING MEMORY SWAP FIRST FIT
I am just building a simulation that takes a testfile containing the processes(timecreated,processid,jobtime,memorysize) and am trying to build a simulator that swaps processes in an out of memory based on their jobtime.

I have done the controlling bit for it but I dont know how you can move a process from disk to memory, i knwo we are meant to allocate memory to it, how do we do that(and say that now a process is in memory?)

Please just help me with this and maybe with just one example. I have a queue that stores all the processes, to say its in memory, do we have to just malloc with the memorysize of the process?? 

looking to hear from someone reall soon. Also this needs to be done using first fit and i know what that is , just dont know how to move processes, its very basic movement that I am interested in doing
CPU SCHEDULING MEMORY SWAP FIRST FIT
===

I am just building a simulation that takes a testfile containing the processes(timecreated,processid,jobtime,memorysize) and am trying to build a simulator that swaps processes in an out of memory based on their jobtime.

I have done the controlling bit for it but I dont know how you can move a process from disk to memory, i knwo we are meant to allocate memory to it, how do we do that(and say that now a process is in memory?)

Please just help me with this and maybe with just one example. I have a queue that stores all the processes, to say its in memory, do we have to just malloc with the memorysize of the process?? 

looking to hear from someone reall soon. Also this needs to be done using first fit and i know what that is , just dont know how to move processes, its very basic movement that I am interested in doing