9 More Discussions You Might Find Interesting
1. Web Development
Here is very good video from Evan You, founder of Vue.js, on the state of Vue.js
State of Vuenation with Evan You
Here is a nice PDF report on Vue.js
Update State of Vue.js Report
Vue.js is now the second most starred project on GitHub, recently surpassing Bootstrap.
These two... (0 Replies)
Discussion started by: Neo
0 Replies
2. AIX
Hi Admins,
I am having a whole system lpar in open firmware state on HMC.
How can I bring it to running state ?
Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies
3. Solaris
Hi all,
One of my zone is stuck in down state, not able to boot it or halt it
root@xpm9ka1 # zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 bsmrxdb4 down /zones/bsmrxdb4 native shared
root@xpm9ka1 # zoneadm -z bsmrxdb4 boot
zoneadm: zone... (6 Replies)
Discussion started by: peppeunz
6 Replies
4. UNIX for Advanced & Expert Users
I'm using
"Linux hostname 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux"
All the client machines will use Thin-client ,I will use my laptop for working and I will
mount my home directory from server to my laptop.
If I open the firefox in my laptop the... (1 Reply)
Discussion started by: ungalnanban
1 Replies
5. UNIX for Advanced & Expert Users
One node in my cluster is using ondemand governor which is specified in the directory
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ..
Scaling_governor allows us to choose the governor of our choice .
But this sub-directory is absent in the other node of the cluster . How do I change... (0 Replies)
Discussion started by: vishwamitra
0 Replies
6. Solaris
One of my zone is stuck in down state, not able to boot it or halt it .. not even detach .. is there any way to recover without rebooting the whole system ( global zone ) ? (3 Replies)
Discussion started by: fugitive
3 Replies
7. UNIX for Advanced & Expert Users
in TCP, is TIME_WAIT state really essential..!!! (3 Replies)
Discussion started by: sasikanth
3 Replies
8. UNIX for Dummies Questions & Answers
If your process makes a system call, then while the system call code is being run in the kernel, is your process READY, RUNNING or BLOCKED? (1 Reply)
Discussion started by: ianlow
1 Replies
9. Programming
hi,
I am looking for some info on how can we implement state machines.
Conceptually it appears to be good but while implementing it causes lot of confusion..
I have some doubts regarding this concept.
(my explanation may look wired, as I am also not clear on this front)
The commonly... (2 Replies)
Discussion started by: parasa
2 Replies
CPS::Governor::Deferred(3pm) User Contributed Perl Documentation CPS::Governor::Deferred(3pm)
NAME
"CPS::Governor::Deferred" - iterate at some later point
SYNOPSIS
use CPS qw( gkforeach );
use CPS::Governor::Deferred;
my $gov = CPS::Governor::Deferred->new;
gkforeach( $gov, [ 1 .. 10 ],
sub {
my ( $item, $knext ) = @_;
print "A$item ";
goto &$knext;
},
sub {},
);
gkforeach( $gov, [ 1 .. 10 ],
sub {
my ( $item, $knext ) = @_;
print "B$item ";
goto &$knext;
},
sub {},
);
$gov->flush;
DESCRIPTION
This CPS::Governor allows the functions using it to delay their iteration until some later point when the containing program invokes it.
This allows two main advantages:
o CPU-intensive operations may be split apart and mixed with other IO operations
o Multiple control functions may be executed in pseudo-parallel, interleaving iterations of each giving a kind of concurrency
These are achieved by having the governor store a list of code references that need to be invoked, rather than invoking them immediately.
These references can then be invoked later, perhaps by using an idle watcher in an event framework.
Because each code reference hasn't yet been invoked by the time the "again" method is called, the original caller is free to store more
pending references with the governor. This allows multiple control functions to be interleaved, as in the "A" and "B" example above.
CONSTRUCTOR
$gov = CPS::Governor::Deferred->new( %args )
Returns a new instance of a "CPS::Governor::Deferred" object. Requires no parameters but may take any of the following to adjust its
default behaviour:
defer_after => INT
If given some positive number, $n then the first "$n-1" invocations of the "again" method will in fact be executed immediately.
Thereafter they will be enqueued in the normal mechanism. This gives the effect that longrunning loops will be executed in batches
of $n.
If not supplied then every invocation of "again" will use the queueing mechanism.
METHODS
$pending = $gov->is_pending
Returns true if at least one code reference has been stored that hasn't yet been invoked.
$gov->prod
Invokes all of the currently-stored code references, in the order they were stored. If any new references are stored by these, they will
not yet be invoked, but will be available for the next time this method is called.
$gov->flush
Repeatedly calls "prod" until no more code references are pending.
SUBCLASS METHODS
The following methods are used internally to implement the functionality, which may be useful to implementors of subclasses.
$gov->later( $code, @args )
Used to enqueue the $code ref to be invoked later with the given @args, once it is determined this should be deferred (rather than being
invoked immediately in the case of the first few invocations when "defer_after" is set).
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-06-27 CPS::Governor::Deferred(3pm)