---
# System prepended metadata

title: Homework 6 - Allocator

---

# Homework 6 - Allocator

## Läxa
Implementera **två olika** allocators i valfritt system programmeringsspråk (C, C++, Rust etc)

Pusha er kod till ett repo i ++organisationen på github med namnet _kth-id_-allocator

## Exempel på allocators
- Arena allocator
- Pool allocator
- Free list
- Pool allocator
- Buddy allocator
- En ny aldrig tidigare använd allocator?!

## Resusrer
- [Veckans Sildes](https://docs.google.com/presentation/d/12mNhlCl_Tlv_6ZIZU64p3CA6IXBcfhhj43j0EGSKFD0/edit?usp=sharing)
- Slab Allocator
    - [Kernel.org](https://www.kernel.org/doc/gorman/html/understand/understand011.html)
    - [Allocators in the linux kernel](https://hammertux.github.io/slab-allocator)
- Buddy allocator
    - [Wikipedia](https://en.wikipedia.org/wiki/Buddy_memory_allocation)
    - [KTH](https://people.kth.se/~johanmon/ose/assignments/buddy.pdf)
- [Rust allocators](https://doc.rust-lang.org/1.9.0/book/custom-allocators.html)

