On Thu, 2006-08-24 at 16:31 +0200, SF Markus Elfring wrote:
> > "7. How do you concurrently run multiple job queues?
> > Would you like to be able to adjust their priorities?"
> >
> > Something like:
> >
> > q = new worker_fifo(arguments);
> >
> > creates a new queue and thread pool (its a C++ class).
> > The queue is linear, it isn't a priority queue.
> >
> Thanks for your quick response.
How about registering with the mailing list
felix-language
on sourceforge?
This would make communication much easier. Yes, you'd get some
email that might not interest you. This list is mainly concerned
with the language.
The felix-impl list has more traffic and is intended for
the developers .. includes all the CVS commits etc.
However the web interface
is inconvenient, and one of the developers already complained
about the stupid way the tracker echos the whole conversation
every time extra comments are added to the bug item: he's
on holiday and is using wireless connection to his portable.
I switched to using email to reply, but now your comments
aren't public, which I think they should be.
FYI I have just written the sugar for this:
------------------------
var x = 0;
var y = 0;
var z = 0;
parallel do
x = 1; print x; endl;
PAR y =2; print y; endl;
PAR z = 3; print z; endl;
done;
print x; endl;
print y; endl;
print z; endl;
------------------------
[EMAIL PROTECTED]:/work/felix/flx$ flx --test pthr
1
2
3
1
2
3
--------------------------
This is the 'co' statement of SR language,
just proof of principle. It's implemented entirely
with user code:
----------------------------------
#import <flx.flxh>
#include <pthread.flx>
#keyword PAR
#nonterminal par_clause #
PAR statements =>#
_2
#
#nonterminal par_clauses #
par_clause =>#
_tuple _1
#
#nonterminal par_clauses #
par_clause par_clauses =>#
_tuple_cons (_1,_2)
#
#statement#
parallel do
statements par_clauses
done; =>#
macro {
{
macro val parclauses = _3;
macro pch is new;
var pch = Pthread::mk_pchannel[unit]();
macro for val parclause in parclauses do
Pthread::spawn_pthread {
{ parclause; };
Pthread::write (pch,());
};
done;
_2;
var u: unit;
macro for val parclause in parclauses do
Pthread::read (&u,pch);
done;
};
};
#
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language