Skip to content

Instantly share code, notes, and snippets.

@ruiqurm
ruiqurm / archlinux-qemu-kvm.md
Created October 13, 2024 17:07 — forked from tatumroaquin/archlinux-qemu-kvm.md
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

Check CPU has VM capabilities

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD
@ruiqurm
ruiqurm / philosopher.rs
Last active December 28, 2022 06:17
philosopher dining problem
use std::sync::mpsc;
use std::sync::{Arc, Mutex};
use std::thread;
use std::time::Duration;
use rand::Rng;
struct Fork;
struct Philosopher {
name: String,
left_fork: Arc<Mutex<Fork>>,