Click here to Skip to main content
15,908,013 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thread management Linux vs Windows Pin
den2k881-Jul-21 4:46
professionalden2k881-Jul-21 4:46 
GeneralRe: Thread management Linux vs Windows Pin
W Balboos, GHB1-Jul-21 4:36
W Balboos, GHB1-Jul-21 4:36 
GeneralRe: Thread management Linux vs Windows Pin
Nemanja Trifunovic1-Jul-21 4:56
Nemanja Trifunovic1-Jul-21 4:56 
GeneralRe: Thread management Linux vs Windows Pin
Greg Utas1-Jul-21 6:12
professionalGreg Utas1-Jul-21 6:12 
GeneralRe: Thread management Linux vs Windows Pin
den2k881-Jul-21 21:34
professionalden2k881-Jul-21 21:34 
GeneralRe: Thread management Linux vs Windows Pin
megaadam1-Jul-21 6:33
professionalmegaadam1-Jul-21 6:33 
GeneralRe: Thread management Linux vs Windows Pin
Greg Utas1-Jul-21 8:25
professionalGreg Utas1-Jul-21 8:25 
GeneralRe: Thread management Linux vs Windows Pin
den2k881-Jul-21 21:39
professionalden2k881-Jul-21 21:39 
megaadam wrote:
If you google for "linux parent pid" you will find that you can indeed get the parent pid. Programmatically Speaking: Find parent pid given a pid[^]
Documentation states that getppid returns the controller thread pid, which is an additional thread by Linux created the first time a thread for a process is created. Now, I don't need that info now but I find it a flaw in the architecture of a thread - indeed the same documentation specifies that a thread is just a process which overshares. The fact is, if I wanted a process, I would have used a process. I'm used to an entirely different concept of thread and it baffles and irks me.

megaadam wrote:
Linux has something called spin-locks, which are lightweight mutexes.
Busy forms of waiting are useful in some cases but often they are wasteful. I felt the lack of true spinlocks in older Windows (being forced to target XP or even 2K sucked big time) when I was doing user-mode hardware management, but I don't want to use a system where there are only spinlocks.
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

GeneralW11 - are there Pro and Home versions? Pin
jsc421-Jul-21 1:03
professionaljsc421-Jul-21 1:03 
GeneralRe: W11 - are there Pro and Home versions? Pin
den2k881-Jul-21 1:43
professionalden2k881-Jul-21 1:43 
GeneralRe: W11 - are there Pro and Home versions? Pin
theoldfool1-Jul-21 2:23
professionaltheoldfool1-Jul-21 2:23 
GeneralRe: W11 - are there Pro and Home versions? Pin
den2k881-Jul-21 2:45
professionalden2k881-Jul-21 2:45 
GeneralRe: W11 - are there Pro and Home versions? Pin
jsc421-Jul-21 2:37
professionaljsc421-Jul-21 2:37 
GeneralRe: W11 - are there Pro and Home versions? Pin
Dan Neely1-Jul-21 3:00
Dan Neely1-Jul-21 3:00 
GeneralRe: W11 - are there Pro and Home versions? Pin
den2k881-Jul-21 3:03
professionalden2k881-Jul-21 3:03 
GeneralRe: W11 - are there Pro and Home versions? Pin
Dan Neely1-Jul-21 3:10
Dan Neely1-Jul-21 3:10 
GeneralRe: W11 - are there Pro and Home versions? Pin
Greg Utas1-Jul-21 3:33
professionalGreg Utas1-Jul-21 3:33 
GeneralRe: W11 - are there Pro and Home versions? Pin
David O'Neil1-Jul-21 5:55
professionalDavid O'Neil1-Jul-21 5:55 
Generall89 with i2c communication Pin
Serolla Krish30-Jun-21 23:37
Serolla Krish30-Jun-21 23:37 
GeneralRe: l89 with i2c communication Pin
Richard MacCutchan30-Jun-21 23:41
mveRichard MacCutchan30-Jun-21 23:41 
GeneralRe: l89 with i2c communication Pin
glennPattonWork330-Jun-21 23:49
professionalglennPattonWork330-Jun-21 23:49 
GeneralRe: l89 with i2c communication Pin
Rage1-Jul-21 0:34
professionalRage1-Jul-21 0:34 
GeneralRe: l89 with i2c communication Pin
glennPattonWork31-Jul-21 0:51
professionalglennPattonWork31-Jul-21 0:51 
GeneralRe: l89 with i2c communication Pin
Richard MacCutchan1-Jul-21 2:01
mveRichard MacCutchan1-Jul-21 2:01 
GeneralRe: l89 with i2c communication Pin
Serolla Krish4-Jul-21 23:48
Serolla Krish4-Jul-21 23:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.