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
priority choices (run "man pthread_attr_ini
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
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'
i sent an earlier post as to how to set the proxy
server via the command line.
well i just found in the java.sun site and the command
line parameters that need to set on a unix box are as
follows
java -Dhttp.proxyHost=proxyhost
[-Dhttp.proxyPort=portNumber] URLReader
question is
This is perfectly legal with respect to the JLS. LinuxThreads only
allows thread priorities for the scheduling policies SCHED_RR,
SCHED_FIFO, both policies would require superuser privileges and are
not what you really want to have for Java threads.
Joseph> Run the following with green thre
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
Have you looked at, say, javaworld's tool guide or freshmeat.net or IBM's
jCentral? Some that come to mind are mozilla, javazilla (or whatever it's
called, I'm sure there's a link at www.mozilla.org), sun's hot java (don't
know if source is available), lynx (ditto), www.icesoft.no...
At 02:19 PM
i have a small java program that goes and accesses
a web page. (used the URL class)
the java program works fine, but how do i force it
to use a proxy server. I mean when i run the java
program via the command line it goes and fetches
the http web page as mentioned in the arguments
java test http
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 {
public threadtest() {}
Hi:
Is there any source code of a Web browser for Linux available somewhere?
It's even better if it's pure Java source code, so we can use it on
different platform to get a consistent interface?
Thanks.
Lee
--
To UNSUBSCRIBE
Does anyone know whether IBM jdbc driver's is supported on jdk1.2?
Thanks.
Daniel
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
11 matches
Mail list logo