标题: 萝莉控也懂的深入浅出线程

摘要:* 只是闲着图一乐写的,本人水平有限

* 对Linux外的平台无任何了解,如果有错误可以在评论区纠正

* 有使用AI润色,因为语言组织水平太烂了

* 标题是玩《Hentai Prison》的梗

- [软件线程](#软件线程)

* [引入](#引入)

* [内核态](#内核态)

* [内核线程是什么?](#内核线程是什么)

* [用户态](#用户态)

* [pthreads](#pthreads)

* [实现...

原始链接: https://www.kungal.com/topic/2970

萝莉控也懂的深入浅出线程 - 鲲 Galgame 论坛 🐳 开源 Galgame 网站

只是闲着图一乐写的,本人水平有限 对Linux外的平台无任何了解,如果有错误可以在评论区纠正 有使用AI润色,因为语言组织水平太烂了 标题是玩《Hentai Prison》的梗 软件线程 引入 内核态 内核线程是什么? 用户态 pthreads 实现用户态线程 协程 C++20 Coroutine Rust Async 硬件线程 前言 GPGPU SIMT 总结 ~~线程(英语:thread)在计算机科学中,是将进程划分为两个或多个线程(实例)或子进程,由单处理

鲲 Galgame 论坛 🐳 开源 Galgame 网站

Fun with `pthread_cancel()` in curl. How I got that working and what challenges I encountered.
#curl #dns #pthreads

https://eissing.org/icing/posts/pthread_cancel/

pthread_cancel - It's always DNS!

Updated (2025-08-22) at the end You probably know about threads and most likely heard of pthreads, but have you ever used pthread_cancel()? Well, I had not before last week and it was a little bit of a journey. What’s the problem? curl (or better libcurl) runs all transfers in the same thread (You can run libcurl in several threads, but that’s a story for another post). So, libcurl does not use threads, right? Well, maybe. If your curl is linked with c-ares for resolving, it does not. But without c-ares it tries to use threads, where available, for the “AsynchDNS” feature.

icing's blog
Congrats on your heroic journey of moving #pigz from #Unix to Windows, 🎉 because apparently, the world desperately needed faster #gzipping on an OS that can't spell "pthreads" without a 20,000-line manual. 📝 Next time, maybe try something really challenging, like teaching a penguin to fly. ✈️
https://blog.kowalczyk.info/article/4/how-i-ported-pigz-from-unix-to-windows.html #heroicjourney #toWindows #pthreads #penguinchallenge #HackerNews #ngated
How I ported pigz from Unix to Windows

Which language/technology did you use when developing your first parallel program?

#OpenMP? #MPI? #CUDA? #pthreads? #Coarrays? #UPC? Something else?

#HPC

On a Simplified Approach to Achieve Parallel Performance and Portability Across CPU and GPU Architectures

#CUDA #HIP #Pthreads #Fortran #PerformancePortability #Package

https://hgpu.org/?p=29517

On a Simplified Approach to Achieve Parallel Performance and Portability Across CPU and GPU Architectures

This paper presents software advances to easily exploit computer architectures consisting of a multi-core CPU and CPU+GPU to accelerate diverse types of high-performance computing (HPC) application…

hgpu.org

[Перевод] Xv6: учебная Unix-подобная ОС. Глава 6. Блокировки

Ядро ОС выполняет программы параллельно и переключает потоки по таймеру. Каждый процессор выполняет поток независимо от других. Процессоры используют оперативную память совместно, поэтому важно защитить структуры данных от одновременного доступа. Потоки испортят данные, если процессор переключится на другой поток, когда первый поток еще не завершил запись. Потоки конкурируют за доступ к структуре данных. Ядро кишит структурами, которые потоки используют совместно. Блокировки защищают данные при конкурентном доступе. Глава расскажет, зачем нужны блокировки, как xv6 реализует и использует блокировки.

https://habr.com/ru/articles/797557/

#xv6 #блокировки #прерывания #взаимоблокировки #потоки #параллельное_программирование #многопоточность #pthreads #lockfree

Xv6: учебная Unix-подобная ОС. Глава 6. Блокировки

Предыдущая: Глава 5. Прерывания и драйверы устройств Примечание. Авторы рекомендуют читать книгу вместе с исходным текстом xv6 . Авторы подготовили и лабораторные работы по xv6 . Xv6 работает на...

Хабр
#pthreads are implemented in the C standard library, which (and every user-space program) is using #syscalls to interact with the #kernel
Looks like some point of #git clone command execution, which prevents duplication
@[email protected] could this also be why #docker bars strace ?
#pthreads are implemented in the C standard library, which (and every user-space program) is using #syscalls to interact with the #kernel
Looks like some point of #git clone command execution, which prevents duplication
@b0rg could this also be why #docker bars strace ?