information? I'm not proficient with JAVA (yet) so an example will be
helpful.
Thanks,
Steve
-----Original Message-----
From: Joe Bernard [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19, 2004 11:08 AM
To: CF-Talk
Subject: Re: ColdFusion thread priority
I turned this into a UDF for anyone interested:
<cfscript>
function setThreadPriority(newPriority){
var thread = createObject("java", "java.lang.Thread");
if (arguments.newPriority le thread.max_priority and arguments.newPriority
ge thread.min_priority){
thread.setPriority(arguments.newPriority);
return true;
}else{
return false;
}
}
</cfscript>
Example call:
<cfset foo = setThreadPriority(3)>
This will only run under CFMX and higher.
-Joe
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

