February 2011
1 post
inception - The movie, explained through C code →
thechangelog:
I’ll be honest: this is one of the cooler things I’ve seen recently:
/*
* Create separate threads for the main protagonists involved in the inception
*/
static void *inception(void *unused)
{
struct sched_param param = {.sched_priority = 99 };
int policy = SCHED_OTHER;
if(!getuid()
||
!geteuid())
{
output("Setting policy to real time...