CSCI SHU MISC
New York University
All 2 results
Sort by
-
memory.c CSCI-SHU MISC|very helpful
- Exam (elaborations) • 6 pages • 2022
-
- $7.49
- + learn more
#include "oslabs.h" 
#include <stdio.h> 
#include <string.h> 
#include <stdbool.h> 
// 1 
struct MEMORY_BLOCK best_fit_allocate(int request_size, struct MEMORY_BLOCK 
memory_map[MAPMAX],int *map_cnt, int process_id) { 
 struct MEMORY_BLOCK temp_memory_block, allocated_memory; 
 allocated__address = 0; 
 allocated__address = 0; 
 allocated_ss_id = 0; 
 allocated_nt_size = 0; 
 bool match = false; 
 int memory_map_index = 0 , best_fit_segment = 0; 
 // It finds the candidate me...
-
virtual.c CSCI-SHU MISC|very useful during revision
- Exam (elaborations) • 9 pages • 2022
-
- $6.49
- + learn more
#include "oslabs.h" 
#include <stdio.h> 
#include <string.h> 
#include <stdbool.h> 
// 1 
int process_page_access_fifo(struct PTE page_table[TABLEMAX],int *table_cnt, int 
page_number, int frame_pool[POOLMAX],int *frame_cnt, int current_timestamp) { 
 // first checks if the page being referenced is already in memory (i.e., the 
page-table entry has the valid bit true) 
 if (page_table[page_number].is_valid == true) { 
 // modifies the last_access_timestamp 
 page_table[page_n...
Fear of missing out? Then don’t!
Do you wonder why so many students wear nice clothes, have money to spare and enjoy tons of free time? Well, they sell on Stuvia! Imagine your study notes being downloaded a dozen times for $15 each. Every. Single. Day. Discover all about earning on Stuvia