News for hackers. Stuff that matters.
Re:Threads, Threads, and More Threads by tcfhgj on Tuesday March 22, 2022 @08:07PM (#30773251)
you can't have more parallelism by simply increasing #threads. Parallelism is bound by CPU cores.

Threads need to scale with CPU cores, however simply increasing #threads doesn't help. You need to split tasks of your program such that more tasks can be executed in parallel while not adding more overhead than you gain by parallelism.

Then you can distribute those tasks on as many threads as possible (while still being bound by #cores).

Re:Threads, Threads, and More Threads by astrange on Tuesday March 22, 2022 @09:31PM (#30773828)
> you can't have more parallelism by simply increasing #threads. Parallelism is bound by CPU cores.

It's bound by the slowest shared resource in the system (Amdahl's law). That could be disk I/O, memory bandwidth, or power budget.

Re:Threads, Threads, and More Threads by Icathian on Tuesday March 22, 2022 @11:08PM (#30774425)
That isn't what Amdahl's law says. Amdahl's law is an equation describing the theoretical paralellizability of a given task. It doesn't have anything to do with systems bottlenecking on one resource vs another.