Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39581
| From | Martin Gregorie <martin@mydomain.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Threads [Was: Get real, user and system time] |
| Date | 2020-07-21 16:55 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <rf76lq$rq0$1@dont-email.me> (permalink) |
| References | <87o8oc99wk.fsf@munus.decebal.nl> <rf5a0m$q3a$1@dont-email.me> <rf6kur$apm$1@dont-email.me> <rf6nrs$42m$1@dont-email.me> |
On Tue, 21 Jul 2020 08:42:32 -0400, Eric Sosman wrote: > This sounds like the "green threads" model used in Old-Time Original > Java of a quarter-century ago. Is Linux still stuck with that relic? > Pass on that: I only started to use Linux 20 years back. At that time it used the standard C libraries. > (IIRC there was a time when Linux sort of faked multi-threading by > running multiple processes, but I kind of thought "LinuxThreads" had > long since been replaced by "NPTL.") > Don't forget that all Unices have allways provided to ways of doing the same sort of thing: - a single process with multiple threads running in it - multiple, separately forked, processes that access one or more shared memory modules. These will look different when looked at by top and similar tools though use the same basic tools (semaphores, locks, etc). AFAIK Java uses the standard thread module but I could be wrong: I haven't examined its inner workings - just know that a running Java program looks the same in 'top' as a threaded C program while multiple processes with with shared memory look quite different. > Anyhow: If you're right, that would explain why nobody runs Java > on Linux multi-core servers ... > More do that you may realise: my mail archive is Java and runs on a dual Athlon. I run a variety of Java applications on this Intel i5 based laptop. All my computers run Linux apart from one or two PIC-based devices (PicAXE and Parallax STAMP) but those don't run Java. -- Martin | martin at Gregorie | gregorie dot org
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Get real, user and system time Cecil Westerhof <Cecil@decebal.nl> - 2020-07-18 16:26 +0200
Re: Get real, user and system time Martin Gregorie <martin@mydomain.invalid> - 2020-07-18 20:59 +0000
Re: Get real, user and system time Luuk <luuk@invalid.lan> - 2020-07-20 08:06 +0200
Re: Get real, user and system time Martin Gregorie <martin@mydomain.invalid> - 2020-07-20 08:55 +0000
Re: Get real, user and system time Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2020-07-21 01:40 +0200
Re: Get real, user and system time Martin Gregorie <martin@mydomain.invalid> - 2020-07-21 11:52 +0000
Threads [Was: Get real, user and system time] Eric Sosman <esosman@comcast-dot-net.invalid> - 2020-07-21 08:42 -0400
Re: Threads [Was: Get real, user and system time] Martin Gregorie <martin@mydomain.invalid> - 2020-07-21 16:55 +0000
Re: Threads [Was: Get real, user and system time] Eric Sosman <esosman@comcast-dot-net.invalid> - 2020-07-21 15:46 -0400
Re: Threads [Was: Get real, user and system time] Martin Gregorie <martin@mydomain.invalid> - 2020-07-21 20:16 +0000
Re: Threads [Was: Get real, user and system time] Martin Gregorie <martin@mydomain.invalid> - 2020-07-21 23:14 +0000
Re: Get real, user and system time Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2020-07-22 00:23 +0200
csiph-web