Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's one of the two hard problems in Computer Science:

1. Naming things 2. Cache invalidation 3. Off-by-one errors.



Actually th4. Concurrencyere are three - you missed:


4: Concurrenc4: Conc4u:r ryConenccuyrrencyy

    #include <sched.h>
    
    cpu_set_t  mask;
    CPU_ZERO(&mask);
    CPU_SET(0, &mask);
    result = sched_setaffinity(0, sizeof(mask), &mask);
4: Concurrency




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: