Click here to Skip to main content
15,890,282 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: Pulley question Pin
David Crow1-Jul-21 4:51
David Crow1-Jul-21 4:51 
GeneralRe: Pulley question Pin
W Balboos, GHB1-Jul-21 5:14
W Balboos, GHB1-Jul-21 5:14 
GeneralRe: Pulley question Pin
David O'Neil1-Jul-21 5:46
professionalDavid O'Neil1-Jul-21 5:46 
AnswerRe: Pulley question Pin
PIEBALDconsult1-Jul-21 4:27
mvePIEBALDconsult1-Jul-21 4:27 
AnswerRe: Pulley question Pin
Storm-blade1-Jul-21 4:49
professionalStorm-blade1-Jul-21 4:49 
AnswerRe: Pulley question Pin
DRHuff1-Jul-21 5:18
DRHuff1-Jul-21 5:18 
AnswerRe: Pulley question Pin
mngerhold1-Jul-21 22:20
mngerhold1-Jul-21 22:20 
RantThread management Linux vs Windows Pin
den2k881-Jul-21 3:34
professionalden2k881-Jul-21 3:34 
I'm writing my first Linux application using threads, and I'm discovering how much Linux thread management is dumb wrt Windows.

First, threads are actually miniprocesses, they can't even return the pid of their parent process because they are by all purposes separate. Well mate, if I wanted a process I would have forkinged...

Second, there is no critical section, which is only natural given point 1. So every mutex is a kernel mode transition.

Third, apparently threads continuously poll mutexes isntead of going in WAIT. To use a proper thread wait you'd need a condition variable AND a mutex. No reason at all.

After years of development under Windows, targetting mostly XP (2002 tech), I feel as if I traveled in the past. Like that episode with Scotty...
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

GeneralRe: Thread management Linux vs Windows Pin
Greg Utas1-Jul-21 3:42
professionalGreg Utas1-Jul-21 3:42 
GeneralRe: Thread management Linux vs Windows Pin
Richard Deeming1-Jul-21 4:11
mveRichard Deeming1-Jul-21 4:11 
GeneralRe: Thread management Linux vs Windows Pin
Richard MacCutchan1-Jul-21 4:23
mveRichard MacCutchan1-Jul-21 4:23 
GeneralRe: Thread management Linux vs Windows Pin
Greg Utas1-Jul-21 4:56
professionalGreg Utas1-Jul-21 4:56 
GeneralRe: Thread management Linux vs Windows Pin
  Forogar  1-Jul-21 4:33
professional  Forogar  1-Jul-21 4:33 
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 
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 

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.