Re: Green vs Native Threads

2003-02-06 Thread Tom Ball
scheduling, communication, etc. There have been many other similar threads packages written over the years, used by apps that need multi-threading but need to run on operating systems that either don't support threads, or do it inadequately for the application. Native threads is just that,

Green vs Native Threads

2003-02-06 Thread Henrique
Folks, what's the diference between Native and Green Threads for the performance of a software and for System Operation? The new Linux Kernel 2.4.20 manage all threads as Native, but using the concept of Green? Regards, Henrique --

native threads on arm linux (jdk118_v2)

2001-04-02 Thread Benoit Sophie
Hi, I'm trying to run java with native threads option with Blackdown jdk118_v2 for arm. I get the following error message and I'd like to know if anyone has an idea of how I can solve this problem. It seems that jdk118_v2 is the only one with native threads support for arm, correct

jdk-1.1.7 v3 native threads question/problem

2000-08-31 Thread Bill Halchin
Hello, I have some kind of file system permissions problem. I installed the native threads jdk-1.1.7 on my Red Hat machine (6.0, 6.2??). When I run javac, I get a complaint about inability to create a file in /proc. The permissions on /proc look OK. Any help? Bill Halchin

Re: JRE 1.1.8 Native Threads support missing for linux/Intel

2000-06-12 Thread Juergen Kreileder
> "Urban" == Urban Widmark <[EMAIL PROTECTED]> writes: Urban> On Wed, 7 Jun 2000, Andrew Majercik wrote: >> And there-in lies the rub, because I am trying to find a viable >> JRE for shipping a product. :) Urban> Sorry, I need to read $subject more carefully. >> Does any

Re: JRE 1.1.8 Native Threads support missing for linux/Intel

2000-06-08 Thread Urban Widmark
On Wed, 7 Jun 2000, Andrew Majercik wrote: > And there-in lies the rub, because I am trying to find a viable JRE for > shipping a product. :) Sorry, I need to read $subject more carefully. > Does anyone know who to contact? The blackdown people are on this list, they probably already know.

Re: JRE 1.1.8 Native Threads support missing for linux/Intel

2000-06-07 Thread Andrew Majercik
Ahhh! And there-in lies the rub, because I am trying to find a viable JRE for shipping a product. :) Does anyone know who to contact? Thanks, Andrew >From: Oscar Carrillo <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: JRE 1.1.8 Native Threads support mi

Re: JRE 1.1.8 Native Threads support missing for linux/Intel

2000-06-07 Thread Oscar Carrillo
hten us? > > I posted an inquiry before but got no reply. > > > > I had to eventually use the IBM JRE 1.1.8, which only supports native threads. > > I would probably make an RPM of the balckdown 1.1.8 if I could figure out the > > native threads support. > > The na

Re: JRE 1.1.8 Native Threads support missing for linux/Intel

2000-06-07 Thread Urban Widmark
On Wed, 7 Jun 100, Oscar Carrillo wrote: > I couldn't figure this out either. Can someone please enlighten us? > I posted an inquiry before but got no reply. > > I had to eventually use the IBM JRE 1.1.8, which only supports native threads. > I would probably make an RPM of

Re: JRE 1.1.8 Native Threads support missing for linux/Intel

2000-06-07 Thread Oscar Carrillo
I couldn't figure this out either. Can someone please enlighten us? I posted an inquiry before but got no reply. I had to eventually use the IBM JRE 1.1.8, which only supports native threads. I would probably make an RPM of the balckdown 1.1.8 if I could figure out the native threads su

JRE 1.1.8 Native Threads support missing for linux/Intel

2000-06-07 Thread Andrew Majercik
Hi, I've been reading the FAQ and the Blackdown site about Native threads, and I'm having trouble getting the Native threads package for jre 1.1.8 under Intel linux. The web page claims 1.1.8 to have the native threads support built in on one section of the web p

native threads w/ JRE1.1.8

2000-05-15 Thread Oscar Carrillo
Hi, I've compiled a server application under blackdown's JDK 1.1.8 with native threads. But I can't see any libraries for native threads to be run under the JRE. It seems every other version has them for the JRE. What is different about 1.1.8? I don't have the option to mo

Re: Thread priorities don't work with native threads

2000-05-01 Thread Nathan Meyers
On Sat, Jun 07, 2036 at 07:48:37PM -0700, Joseph Shraibman wrote: > Run the following with green threads and you get only H's. Run it with native > threads and you get H's mixed with L's The native threading mechanism on Linux doesn't offer many thread

Re: Thread priorities don't work with native threads

2000-05-01 Thread John R MacMillan
I think you could rephrase that as "In Java, Thread priorities don't work". :-) The language guarantees about thread priorities are probably weaker than you expect. Quoth the language spec: "Every thread has a priority. When there is competition for processing resources, threads with higher prior

Re: [Re: Thread priorities dont work with native threads]

2000-05-01 Thread Joseph Shraibman
Juergen Kreileder <[EMAIL PROTECTED]> wrote: Jurergen> Don't use thread priorities for synchronization! I'm not. I have an rmi server that needs to do a lot of work. I want to spin off some time insensitve tasks into their own low priority thread so that rmi calls that need fast responses won'

Re: Thread priorities don't work with native threads

2000-05-01 Thread Juergen Kreileder
een threads and you get only H's. Joseph> Run it with native threads and you get H's mixed with L's Don't use thread priorities for synchronization! They are completely different concepts. Even with thread priorities implemented your test would fail badly on multi process

Re: Thread priorities don't work with native threads

2000-05-01 Thread Nelson Minar
Thread priorities don't work in any JVM I've used. Java's rules are fairly senseless, too. I'm not sure your case qualifies as a bug, though: > public void run(){ > //Thread.yield(); > while(true){ > System.out.print(name); > System.out.flush

Thread priorities don't work with native threads

2000-05-01 Thread Joseph Shraibman
Run the following with green threads and you get only H's. Run it with native threads and you get H's mixed with L's /** * threadtest.java * * * Created: Mon May 1 15:35:45 2000 * * @author Joseph Shraibman * @version 1.0 */ public class threadtest { pu

sparc RedHat Linux, Native Threads and HotSpot

2000-04-13 Thread Avi Cherry
threads and no JIT seems to work alright, though I haven't tested it thoroughly. Running with native threads (and no JIT) results in the following: $ java -native -version SIGSEGV 11* segmentation violation si_signo [0]: no signal si_errno [0]: Success si_code [0]: SI_USER [

Problems with the native threads on Linux

1999-12-08 Thread Pramila
Hi !       I am using  jdk117_v3  on RH6.1 and RH6.0 .       Here jdb hangs if I set the THREADS_FLAG to native , but it works properly if it equals to green.       Any info on  this? Please let me know  whether java native threads works properly on RH6.1 and RH6.0.       Thanks in

JNI, native threads and segmentation fault error

1999-11-30 Thread Anthony G. Starovojtov
Hi All, When running simple JNI program under Linux "Segmentation fault" error occured. I've known I can avoid it using native threads. But when setting THREADS_FLAG to "native" javac and java either hangs or says that can't read /proc/00116 directory. Also chan

native threads

1999-11-20 Thread John Knutson
own a problem I was having to the native threads issue documented in the Blackdown JDK readme file (and probably other places :-). The odd thing is, I'm using the IBM 1.1.8 JDK. It made me wonder what the correlation between the two JDKs was. Was IBM's JDK for linux written entirely from scr

Re: Native Threads Help

1999-10-17 Thread Juergen Kreileder
memory size tweaks for Oracle. I don't remember when this bug showed up first, maybe it was with glibc-2.1.2. Aaron> On 17 Oct 1999, Juergen Kreileder wrote: >> >>>>> Aaron Mulder writes: >> Aaron> I just installed the native threads add

Re: Native Threads Help

1999-10-17 Thread Aaron Mulder
ource with some of the shared memory size tweaks for Oracle. On 17 Oct 1999, Juergen Kreileder wrote: > >>>>> Aaron Mulder writes: > > Aaron> I just installed the native threads add-on to the 1.1.7 JRE > Aaron> and whenever I try to use it (jre -native test) I

Re: Native Threads Help

1999-10-17 Thread Juergen Kreileder
>>>>> Aaron Mulder writes: Aaron> I just installed the native threads add-on to the 1.1.7 JRE Aaron> and whenever I try to use it (jre -native test) I get the Aaron> following result: Aaron> Cannot open /proc/02891 for GCCould not create Java VM A

Re: Native Threads Help

1999-10-17 Thread Nathan Meyers
Aaron Mulder wrote: > > I just installed the native threads add-on to the 1.1.7 JRE and > whenever I try to use it (jre -native test) I get the following result: > > Cannot open /proc/02891 for GCCould not create Java VM > > Where the proc number chang

Native Threads Help

1999-10-17 Thread Aaron Mulder
I just installed the native threads add-on to the 1.1.7 JRE and whenever I try to use it (jre -native test) I get the following result: Cannot open /proc/02891 for GCCould not create Java VM Where the proc number changes every time... I'm using Red Hat 6.1 on a 2-proc

glibc version jdk117_v1a with native threads on redhat 6.0

1999-10-01 Thread Ruchir Tewari
Hi there, Is the jdk117_v1a (glibc version) supposed to work on redhat 6.0 (glibc2.1, kernel 2.2.5-15) or are there glibc2.0/glibc2.1 incompatibilities at work here ? I'm using native threads with this jdk on redhat6.0 for a multithreaded server that used JNI. If I use a single c

Re: yay! was: native threads, SIGSTOP, and Invocation API

1999-09-10 Thread Gene McCulley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >>>>> "Juergen" == Juergen Kreileder <[EMAIL PROTECTED]> writes: >>>>> Gene McCulley writes: Gene> Under glibc 2.0 and SMP, the native threads version of Gene> jdk117_v3 is unreliable.

Re: yay! was: native threads, SIGSTOP, and Invocation API

1999-09-10 Thread Juergen Kreileder
>>>>> Gene McCulley writes: Gene> Under glibc 2.0 and SMP, the native threads version of Gene> jdk117_v3 is unreliable. We are working on it. Gene> Another problem with the Invocation API is embedding Java Gene> GUI apps in applications that u

yay! was: native threads, SIGSTOP, and Invocation API

1999-09-10 Thread Gene McCulley
seems a legitimate thing to do to me, but apparently the native threads implementation does not expect that the main thread will be a Java native thread also. It seems that the main thread is the one that sends SIGSTOP to all of the threads that are Java native threads. In my case, that meant that

Re: native threads, SIGSTOP, and Invocation API

1999-09-08 Thread Matt Welsh
I had quite a few problems using native threads with JDK 1.1.7v3. These were never resolved but the Blackdown folks said that the forthcoming 1.1.8 release might fix some of the problems. You should be able to use gdb to find out what's going on; you can tell gdb to report the various si

native threads, SIGSTOP, and Invocation API

1999-09-08 Thread Gene McCulley
jdk117_v3 on a glibc 2.1.2 system under a 2.2.9 single processor kernel. I am using native threads and the Invocation API embedded in a large application. My problem is that everytime the garbage collector runs, most of the threads seem to get SIGSTOP but never get started again. The program even

Re: native threads broken on jdk1.2pre-v2 under SMP

1999-08-31 Thread Matt Welsh
Bart Locanthi <[EMAIL PROTECTED]> writes: > i've been periodically trying out native threads, hoping to get full > usage from an SMP sytem. so far, no luck. finally abstracted the problem > into a simple, repeatable form. > > the following program creates M threads th

native threads broken on jdk1.2pre-v2 under SMP

1999-08-31 Thread Bart Locanthi
i've been periodically trying out native threads, hoping to get full usage from an SMP sytem. so far, no luck. finally abstracted the problem into a simple, repeatable form. the following program creates M threads that each make and quit from N Sockets to an SMTP_HOST. java NT SMTP

Re: Bug in v1.1.7_v3 Native Threads?

1999-08-30 Thread Matt Welsh
"James H. Cloos Jr." <[EMAIL PROTECTED]> writes: > > But 1.1.7_v3 w/ native threads failt to output *anything*. This is exactly the behavior we're seeing - looks like native threads in 1.1.7_v3 are simply broken. Juergen says that he doesn't have this prob

Re: Bug in v1.1.7_v3 Native Threads?

1999-08-28 Thread James H. Cloos Jr.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I just tested it on my mostly RH60 box. In IBM's 1.1.6, the threads alternate their output. The same occurs in BD's 1.2 w/ native threads and in 1.1.7_v1a w/ native threads. Both 1.2 and 1.1.7_v3 w/ green threads starve thread 2. 1.1.7

Bug in v1.1.7_v3 Native Threads?

1999-08-25 Thread Matt Welsh
I have a very simple program which spawns two threads. Running this using native threads on JDK 1.1.7_v3 (Red Hat 6.0 w/glibc 2.1) on a 2-way SMP machine only allows one of the threads to run; the other doesn't even appear to start! Using green threads, one thread always runs while the

jdk 1.1.7_v3 + Redhat Linux 6.0 + native threads?

1999-08-22 Thread Nelson Minar
Does anyone know if jdk 1.1.7_v3 works with native threads under Redhat 6.0? My big hairy lots-of-threads program is choking entirely, deadlocking fairly early on. It works fine in Redhat 5.1. I know my own code has concurrency bugs, but maybe part of it is the JDK's fault as well? I can&#

RPMS and Native threads on RH 6.0

1999-08-06 Thread Michael Holst
Hello, I have a couple of questions concerning the JDK ports from Blackdown and IBM: 1- Is the Blackdown port Native threads? If so, how do I invoke them? 2- Where can I download the RPM for the Blackdown JDK that actually *works* right after installing on RH 6.0? 3- Is the IBM JDK good at

[Fwd: SIGSEGV 11* using native threads..]

1999-07-28 Thread Sree Kumar
> Hi : >Am trying to run "jre -native -cp myClasses.zip myMainClass" and am > getting > a core dump when the VM comes up.. ... (GREEN Threads work fine !) > Was running the glibc 1.1.7 v3 of blackdown jvm for x86. > > My machine info is : > Red Hat Linux release 6.0 (Hedwig) > Kernel 2.2.5-15

green threads, native threads and glibc2.0/2.1

1999-06-17 Thread Derek Glidden
the behaviours might mean. On the glibc 2.0 machine, green threads work great with both 1.1.7-v3 and 1.2-pre2. Native threads work ok, but performance is actually worse than with green threads, although, in either case I'm finding that 1.2-pre2 is appx 5x faster than 1.1.7-v3. (Also, I followe

Re: RedHat 6, JDK 1.2. native threads & JNI

1999-06-12 Thread Steve Fink
> So what can you do? Either of the following should work: > > * Run `configure' with the same prefix argument you've used for glibc 2.0.x > so that the same paths are used. > * Replace /lib/ld-linux.so.2 with a link to the dynamic linker from glibc > 2.1. > > You can even call the dynamic

process shutdown fails in JNI-application (native threads)

1999-06-11 Thread Volker Wehner
Hi, I am using the JNI invocation API in a C (not C++) application. Calling java methods works. But when the program calls exit() it hangs in __syscall_sigsuspend(). All threads (native ones, creates by the JVM after JNI_CreateJavaVM()) remain in the process list. This is the stack of the main

Re: native threads Java with glibc 2.1

1999-06-11 Thread Bernd Kreimeier
Jim Hazen writes: > Same there. Blackdown is doing a great job with 1.2 considering all the > bazillion new features it adds over 1.1. The latest rounds of Native > threads for 117v3 work great 'cept for AWT in dlopen() loaded JNI apps. Still waiting for the new release wit

Re: native threads Java with glibc 2.1

1999-06-09 Thread Jim Hazen
Same there. Blackdown is doing a great job with 1.2 considering all the bazillion new features it adds over 1.1. The latest rounds of Native threads for 117v3 work great, but there still seem to be numerous Native threading issues in 1.2. I'd really like to see this problem resolved so t

native threads Java with glibc 2.1

1999-06-09 Thread Greg Wolodkin
Hi all- I should start by saying "Thanks!" for all the great work that's being done by the Blackdown folks. Also, I'm wondering how long it might be until a native-threads version of the JDK (either 1.1.x or 1.2) is working with glibc 2.1. Is the problem in linuxthreads, or t

Re: RedHat 6, JDK 1.2. native threads & JNI

1999-06-06 Thread Andreas Jaeger
> Elena Vorisi & Edoardo Comar writes: Elena> Hi. Elena> excuse me, it surely is a newbie question ... Elena> assuming my system is using glibc2.1, which resides in /lib Elena> why can't I install a glibc2.0 in a /glibc2.0 directory under my home dir Elena> and have only selected apps (as f

Re: RedHat 6, JDK 1.2. native threads & JNI

1999-06-06 Thread Elena Vorisi & Edoardo Comar
glibc21 is released, but I would have liked to be able to overcome similar issues with other sw ... bye, Edo. - Original Message - > It is not really a "limitation", it's an incompatibility. RH6 is based > on glibc2.1, while JDK1.2 with native threads currently only works wit

Re: RedHat 6, JDK 1.2. native threads & JNI

1999-06-05 Thread Steve Byrne
"Andy Levine" <[EMAIL PROTECTED]> writes: > > > How involved is it to fix the problems caused by the glibc 2.1 > > changes? Where > > can I read more about the evolution of Linux threads from the 1.x > > kernel on? It > > seems almost all the sticky Java problems on Linux relate to the > > thr

Native threads delima

1999-06-02 Thread Tony Dean
soon. Don't want to invest too much in stuff that is not likely to be around next year. Yet I want it to work as well on green threads as native threads. So, how does the AWT do it? -- Tony Dean Linux: The choice of a GNU Generation! -

Native Threads on Red Hat Linux 6.0 (with glibc 2.1) for JDK/JRE 1.1.7_v3

1999-06-02 Thread Aleksandar Gargenta
Is this a no-no in terms of JVM running with native threads support under glibc 2.1.1-6 on a Dual PII with 512MB RAM system running RedHat Linux 6.0 (as specified in your Bug Report)? (I can run simple stand-alone programs, but not the Apache-JServ Servlet engine) OR There exists a patch or a

Re: RedHat 6, JDK 1.2. native threads & JNI

1999-06-02 Thread Nathan Meyers
Terry Sikes wrote: > > Nathan Meyers wrote: > > > There was an interesting comment in a column in the current Linux > > Journal: evidently glibc 2.0 was an "experimental" release. Problem > > is... it was a widely adopted experimental release. The JDK is in good > > company: many applications we

Re: RedHat 6, JDK 1.2. native threads & JNI

1999-06-02 Thread Terry Sikes
Nathan Meyers wrote: > There was an interesting comment in a column in the current Linux > Journal: evidently glibc 2.0 was an "experimental" release. Problem > is... it was a widely adopted experimental release. The JDK is in good > company: many applications were broken by the move to 2.1, whic

Re: RedHat 6, JDK 1.2. native threads & JNI

1999-06-02 Thread Nathan Meyers
Stefan Proels wrote: > It is not really a "limitation", it's an incompatibility. RH6 is based > on glibc2.1, while JDK1.2 with native threads currently only works with > glibc2.0. Both have pthread support, but some details are different. > The people porting the JDK ha

Re: RedHat 6, JDK 1.2. native threads & JNI

1999-06-02 Thread Stefan Proels
> It seems the consensus "solution" for running the 1.2 JDK under RH6 is to be > SURE you are running green threads (in addition to disabling the JIT). All > the associated comments seem to echo "RH6 doesn't support native threads". > What does this REALLY me

RedHat 6, JDK 1.2. native threads & JNI

1999-06-02 Thread Andy Levine
It seems the consensus "solution" for running the 1.2 JDK under RH6 is to be SURE you are running green threads (in addition to disabling the JIT). All the associated comments seem to echo "RH6 doesn't support native threads". What does this REALLY mean ? Does this mea

Re: Redhat 6 + JDK117v3 + native threads = unreliable AWT?

1999-05-14 Thread Peter Graves
Yes. I have a rather large Swing app that runs fine with 1.1.7v3 green threads, but with native threads it comes up but doesn't paint correctly (the main window remains blank, although I can tell from trace output that the paint code is being called and seems to complete without error), and

Re: Redhat 6 + JDK117v3 + native threads = unreliable AWT?

1999-05-14 Thread Armen Yampolsky
FWIW, I am also seeing painting problems with 1.1.7v3, using native threads. This manifests mainly in the menus, but occassionally the entire app comes up as a big gray box. App came up fine in previous JDK's, and works fine on other platforms. My system is a RedHat 6.0 on i586. -Armen

Re: Native Threads

1999-05-13 Thread Michael Sinz
On Thu, 13 May 1999 10:42:54 +0200, Gerald de Jong wrote: > >i downloaded the v3 JDK, and also the native threads stuff. > >i would like to RTFM about how to make use of the native threads stuff, but i >don't know where the M is. can somebody point a finger? The M should be

Native Threads

1999-05-13 Thread Gerald de Jong
i downloaded the v3 JDK, and also the native threads stuff. i would like to RTFM about how to make use of the native threads stuff, but i don't know where the M is. can somebody point a finger? -- Gerald de Jong, Beautiful Code B.V. Rotterdam, The Netherlands, Tel. +31655893940

Re: Redhat 6 + JDK117v3 + native threads = unreliable AWT?

1999-05-12 Thread Ninja
For me( CAldera OpenLinux 2.2) v2 native thread also does not work in awt/swing especially in swing application. > >JDK 1.1.7v2 works fine! > >Also volanomark won't run with v3/native. > -- To UNSUBSCRIBE, email to [EMAIL PROT

Redhat 6 + JDK117v3 + native threads = unreliable AWT?

1999-05-12 Thread Bryce McKinlay
I'm having lots of problems with native threads in v3 - some AWT/Swing apps don't start correctly, others work unreliably (menus that sometimes dont respond to clicks, windows that come up blank, etc). This is happening on both a KDE and a WindowMaker system so it doesn't appear

Has anyone got the native threads jdk1.1.7a1 running on RH 5.2?

1999-04-17 Thread Aris mulyono
I'm sorry if this question has been addressed before. I searched the mailing-list archive by the same subject but apparently different problem that I have. My problem is : localhost$ java -native results in seg faults on my system. Here is a ldconfig -D output -ldconfig -D

Re: Native Threads in Linux Port for 1.2

1999-03-23 Thread pridemor
Yes, native threads are working in the 1.2 prerelease. Green threads, this time, is a problem when used with the JIT, but you can disable it, of course. Russ [EMAIL PROTECTED] on 03/23/99 11:25:09 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Russell Pridemore

Native Threads in Linux Port for 1.2

1999-03-23 Thread Harold G. Andrews II
Pardon me if this has been asked and I either didn't understand the response, or I missed it, but... I recall a while back that the porting team had some difficultly getting native threads to pass the JCK in JDK 1.2. I was wondering if those issues were ever resolved, and if the curren

Re: has anyone got the native threads jdk1.1.7a1 running?

1999-03-03 Thread Markus Enzenberger
> I was having this problem but one of the nice folks from the blackdown > porting team told me how to fix it. The fix was to add the libjava.so > file to the process space with this command. > > setenv LD_PRELOAD libjava.so Thanks for the hint. I read something similar in the FAQ but it was me

Re: has anyone got the native threads jdk1.1.7a1 running?

1999-03-01 Thread Moses DeJong
multimedia group On Mon, 1 Mar 1999, Markus Enzenberger wrote: > > Hi, > > I have a similar problem here. I use the Invocation API with native > threads, definitely call JNI_CreateJavaVM with a correct classpath, but > JNI_CreateJavaVM hangs for about 30 sec, before it stops with:

Re: has anyone got the native threads jdk1.1.7a1 running?

1999-03-01 Thread Juergen Kreileder
>>>>> Markus Enzenberger writes: Markus> Hi, Markus> I have a similar problem here. I use the Invocation API Markus> with native threads, definitely call JNI_CreateJavaVM with Markus> a correct classpath, but JNI_CreateJavaVM hangs for about Mark

Re: has anyone got the native threads jdk1.1.7a1 running?

1999-03-01 Thread Markus Enzenberger
Hi, I have a similar problem here. I use the Invocation API with native threads, definitely call JNI_CreateJavaVM with a correct classpath, but JNI_CreateJavaVM hangs for about 30 sec, before it stops with: Can't find class java.lang.System Difficult to say more, it happens only wi

Re: Green/Native threads

1999-02-08 Thread Nathan Meyers
Dimitris Vyzovitis wrote: > Nathan Meyers wrote: > > > But I'm always curious about "wacky people" who like to > > use thousands of threads (or tons of memory or zillions of levels of > > recursion, etc.). Is that approach fundamental to solving the problem > > efficiently, or do you use it becau

Re: Green/Native threads

1999-02-08 Thread Nathan Meyers
Dimitris Vyzovitis wrote: > Nathan Meyers wrote: > > > But I'm always curious about "wacky people" who like to > > use thousands of threads (or tons of memory or zillions of levels of > > recursion, etc.). Is that approach fundamental to solving the problem > > efficiently, or do you use it becau

Re: Green/Native threads

1999-02-08 Thread Juergen Kreileder
p until the high priority thread finishes? Since we use LinuxThreads and SCHED_OTHER, 1.2 native threads ignores Java thread priorities (that is valid with respect to the JLS). 1.1.7 used a trick to allow reducing a thread's priority. Juergen -- Juergen Kreileder, Universitaet Dor

Re: Green/Native threads

1999-02-08 Thread Dimitris Vyzovitis
Nathan Meyers wrote: > But I'm always curious about "wacky people" who like to > use thousands of threads (or tons of memory or zillions of levels of > recursion, etc.). Is that approach fundamental to solving the problem > efficiently, or do you use it because it's convenient and/or cool? > Som

Re: Green/Native threads

1999-02-08 Thread Paul Ho
at a Java process using native threads >is limited to 256 threads in the default kernel. It's possible that >boosting NR_TASKS up and recompiling the kernel will Just Work, but I >don't know. I also don't know the implications on kernel memory used >or scheduler performan

Re: Green/Native threads

1999-02-08 Thread Nelson Minar
Nathan Meyers asks: >But I'm always curious about "wacky people" who like to use thousands >of threads (or tons of memory or zillions of levels of recursion, >etc.). Is that approach fundamental to solving the problem >efficiently, or do you use it because it's convenient and/or cool? A bit of bo

Re: Green/Native threads

1999-02-08 Thread Nelson Minar
A bit more info on thread limits.. Linux 2.0 defines NR_TASKS in /usr/src/linux/include/linux/tasks.h. The default is 512, but then there's MAX_TASKS_PER_USER which is defined as NR_TASKS/2. So if I understand right, that means that a Java process using native threads is limited to 256 threa

RE: Green/Native threads

1999-02-08 Thread Miles Sabin
Nathan Meyers wrote, > But I'm always curious about "wacky people" who like > to use thousands of threads (or tons of memory or > zillions of levels of recursion, etc.). Is that > approach fundamental to solving the problem > efficiently, or do you use it because it's convenient > and/or cool? Er

Re: Green/Native threads

1999-02-08 Thread Nathan Meyers
Nelson Minar wrote: > > >All that other discussion about Linux process table slots and > >implementation details is interesting, but not really relevant to the > >distinction between light and heavy. > > There's one important difference - you can only have as many threads > in Linux as you can h

Re: Green/Native threads

1999-02-08 Thread Dimitris Vyzovitis
Michael Sinz wrote: > > >Aren't we supposed to be able to overcome this limitation? It is really > >sad to have this limitation hanging as a big dark cloud above us. ;-} > >I believe that this limitation is not the case in some other "massively > >inferior" OSes like NT. I would also like to aug

Re: Green/Native threads

1999-02-08 Thread Dimitris Vyzovitis
Nelson Minar wrote: > >All that other discussion about Linux process table slots and > >implementation details is interesting, but not really relevant to the > >distinction between light and heavy. > > There's one important difference - you can only have as many threads > in Linux as you can have

Re: Green/Native threads

1999-02-08 Thread Dimitris Vyzovitis
Nathan Meyers wrote: > > I think a lot of people are getting hung up on the notion of lightweight > vs heavyweight processes. Here's the quick definition of the > differences, followed by an explanation of why it's not really relevant > to this discussion: > > - Heavyweight processes run in sepa

Re: Green/Native threads

1999-02-08 Thread ptoscano
> There's one important difference - you can only have as many threads > in Linux as you can have processes. And there's a suprisingly low > upper limit on that, something like 256? I'm one of those wacky people > who likes the idea of writing programs with thousands of threads (most > stopped mo

Re: Green/Native threads

1999-02-08 Thread Nelson Minar
>All that other discussion about Linux process table slots and >implementation details is interesting, but not really relevant to the >distinction between light and heavy. There's one important difference - you can only have as many threads in Linux as you can have processes. And there's a supris

Re: Green/Native threads

1999-02-07 Thread Nathan Meyers
David Wall wrote: > > >This makes me wonder. > >AFAIK, according to their definition, threads are supposed to be > "lightweight" > >processes. I think a lot of people are getting hung up on the notion of lightweight vs heavyweight processes. Here's the quick definition of the differences, follow

Re: Green/Native threads

1999-02-07 Thread David Craig
initely preempt like or lower priority threads). I haven't looked at the native thread Java scheduler, but I presume that like priority, runnable Java threads would be mapped to like priority, runnable pthreads. In which case, the green threads and native threads will differ wildly in their sche

Re: Green/Native threads

1999-02-07 Thread Juergen Kreileder
the fact that context switches in the Linux kernel are pretty efficient. In contrast to the Linux JDK, the Solaris JDK doesn't use pthreads for the native threads vm. (The solaris threads library has some additional functions: suspend, resume, ...)). Also Solaris uses the "many-to-many"

Re: Green/Native threads

1999-02-07 Thread David Wall
were rather heavyweight, since there were comments about having to ensure you have enough process descriptors and such... It would be nice to get clarifcation, since I've not attempted native threads because they seemed like they'd be too heavy. So, I have assumed (incorrectly, most like

Re: Green/Native threads

1999-02-07 Thread Dimitris Vyzovitis
Gerald Gutierrez wrote: > > > Non-Java processes don't have the problem because "processes" are > heavyweight native threads, essentially. Non-Java threads MAY have the > problem if they are not native threads. > > Assuming you are talking about Linu

Green/Native threads

1999-02-06 Thread Gerald Gutierrez
The difference between "green" threads and "native" threads is that in the latter the operating system provides for thread support while in the former the application, in this case a JVM, builds its own thread support on top of one native thread. Hence, if a JVM's gr

Native threads in Java

1999-02-05 Thread Nelson Minar
>On the other side creating native threads is an expensive operation. >Especially on Linux, where threads are heavy-weight system processes. Can anyone tell me whether the Linux port of native threads uses some sort of thread reuse mechanism to cut down on the OS overhead? Ie: if I fire up

Re: JDK 1.1.7 native threads + linux-2.2.0pre8 + glibc2 (i686)

1999-01-24 Thread Vesco Claudio
Hi! Nathan Meyers <[EMAIL PROTECTED]> writes: > Did native threads ever achieve production quality in Linux JDK 1.1? > I never had much luck with them on Linux 2.0... tended to dump core > on me. In kernels 2.2.0pre <= 7 I had no problems: I had run jpython (like a shell) + t

JDK1.1.7A native threads + kernel 2.2.0final("pre9") = broken?

1999-01-21 Thread Bryce McKinlay
After upgrading my Linux kernel from 2.2.0pre7 to 2.2.0pre9 (aka 2.2.0-final), native threads are broken. All complex multithreaded applications (AWT & Swing apps especially) crash within a few seconds of start up. Green threads are not effected. Reverting to 2.2.0pre7 removes the problem.

Re: JDK 1.1.7 native threads + linux-2.2.0pre8 + glibc2 (i686)

1999-01-21 Thread Nathan Meyers
Did native threads ever achieve production quality in Linux JDK 1.1? I never had much luck with them on Linux 2.0... tended to dump core on me. > Argh!! > > with java -native ANYCLASSFILE, I had: > > ** > > SIGSEGV 11* segmentation violation >

JDK 1.1.7 native threads + linux-2.2.0pre8 + glibc2 (i686)

1999-01-21 Thread Vesco Claudio
Argh!! with java -native ANYCLASSFILE, I had: ** SIGSEGV 11* segmentation violation stackbase=BF9FFE70, stackpointer=BF9FF9E0 Full thread dump: "TimerQueue" (TID:0x406788d8, sys_thread_t:0x846d858, state:CW, thread_t: t@7175, sp:0x2f4f4f threadID:0x1947, stack_base:

Native Threads

1999-01-16 Thread Christian Schrader
I heard of the problems with native threads and servlets. When can one anticipate a more stable version of native threads and will this be in the 1.1.7 engine or starting with the 1.2 versions ? Thanks, Christian -- To

problem with jdk117 and native threads

1999-01-14 Thread Moses DeJong
Hi all. Under blackdown's JDK1.1.7 v1a for linux an echo program will not work if it is run from a shell script. The same code will work perfectly if run without the -native argument or directly from the command line. The problem seems to be that a call to System.in.read() will block and never re

Re: Singal use in Native Threads jdk

1998-12-24 Thread java
Interesting post. I've not read much about SIGSTOP/SIGCONT. Should native libraries be catching SIGSTOP to yield to the garbage truck then? How are you handling this inside the black box? Trent Jarvi [EMAIL PROTECTED] rxtx maintainer http://jarvi.ezlink.com/rxtx/

Singal use in Native Threads jdk

1998-12-23 Thread Kevin B. Hendricks
Hi, I am not sure if this is the cuase of your problem, but the natiuve_threads jdk uses the signals to communicate between threads including SIGUSR1, SIGUSR2 (used by linuxthreads), SIGSTOP, SIGCONT (used to stop threads to allow garbage collection thread to run, and SIGUNUSED which is used by t

Re: has anyone got the native threads jdk1.1.7a1 running? (suspend signal)

1998-12-23 Thread Wendy Richardson
s are intermittent, but frequently occur when I press a button that invokes some RMI code. Am I doing something wrong? Has anyone else experienced this? Any clues? -Wendy > Moses DeJong wrote: > > > I have not seen much about the native threads port for 1.1.7 in the > > mailing list ar

  1   2   >