RT @slava_pestovBeOS had all sorts of useful APIs. We need to go back
@firstname.lastname@example.org @slava_pestov cc @email@example.com
@striker @phoefer those were actually useful 😄 (indeed, they added them to profile the syscalls)
@mmu_man @striker @phoefer were they much faster than getpid on Unix tho?
@mmu_man @striker @phoefer or should I say, were they less of a pure syscall overhead than getpid?
@wolf480pl @striker @phoefer IIRC it didn't use the same syscall mechanism as the other ones.
@mmu_man @striker @phoefer Hmm yeah there are probably ways to implement getpid without an actual syscall. I know getpid was used as a benchmark when comparing syscall overhead in BSD vs L4, but BeOS could've been very different here.
@wolf480pl @striker @phoefer getpid would probably have required acquiring a lock to read the team info in the kernel, if it's not cached somewhere.
@phoefer Haiku has them too!
@firstname.lastname@example.org @slava_pestov iirc these were used to benchmark syscall performance
@email@example.com @slava_pestov these were actual system calls weren't they?
chaos.social – a Fediverse instance for & by the Chaos community