Pvm

 view release on metacpan or  search on metacpan

blib/man3/Pvm.3  view on Meta::CPAN

.Vb 1
\&        $bufid = Pvm::recv($tid,$tag);
.Ve
.Ip "\f(CWPvm::recvf\fR" 0
.IX Item "\f(CWPvm::recvf\fR"
Redefines the comparison function used to accept messages.  Eg.
.PP
.Vb 1
\&        Pvm::recvf(\e&new_foo);
.Ve
.Ip "\f(CWPvm::recv_notify\fR" 0
.IX Item "\f(CWPvm::recv_notify\fR"
Receives the notification message initiated by \f(CWPvm::notify\fR.  This 
should be preceded by a \f(CWPvm::probe\fR.  Eg.
.PP
.Vb 3
\&        if ( Pvm::probe(-1,$notify_tag) ){
\&                $message = Pvm::recv_notify ;
\&        }
.Ve
.Ip "\f(CWPvm::recvf_old\fR" 0
.IX Item "\f(CWPvm::recvf_old\fR"
Resets the comparison function for accepting messages to the 
previous method before a call to \f(CWPvm::recf\fR.  
.Ip "\f(CWPvm::reg_hoster\fR" 0
.IX Item "\f(CWPvm::reg_hoster\fR"
Registers this task as responsible for adding new \s-1PVM\s0 hosts.  Eg.
.PP
.Vb 1
\&        $info = Pvm::reg_hoster ;
.Ve
.Ip "\f(CWPvm::reg_rm\fR" 0
.IX Item "\f(CWPvm::reg_rm\fR"
Registers this task as a \s-1PVM\s0 resource manager.  Eg.
.PP
.Vb 1
\&        $info = Pvm::reg_rm ;
.Ve
.Ip "\f(CWPvm::reg_tasker\fR" 0
.IX Item "\f(CWPvm::reg_tasker\fR"
Registers this task as responsible for starting new \s-1PVM\s0 tasks.  Eg.
.PP
.Vb 1
\&        $info = Pvm::reg_tasker ;
.Ve
.Ip "\f(CWPvm::send\fR" 0
.IX Item "\f(CWPvm::send\fR"
Send the data in the active message buffer.  Eg.  
.PP
.Vb 2
\&        # Pvm::send(-1,-1);
\&        $info = Pvm::send ;
.Ve
.Vb 2
\&        # Pvm::send($tid,-1);
\&        $info = Pvm::send($tid);
.Ve
.Vb 1
\&        $info = Pvm::send($tid,$tag);
.Ve
.Ip "\f(CWPvm::sendsig\fR" 0
.IX Item "\f(CWPvm::sendsig\fR"
Sends a signal to another \s-1PVM\s0 process.  Eg.
.PP
.Vb 2
\&        use POSIX qw(:signal_h);
\&        ...
.Ve
.Vb 1
\&        $info = Pvm::sendsig($tid,SIGKILL);
.Ve
.Ip "\f(CWPvm::setopt\fR" 0
.IX Item "\f(CWPvm::setopt\fR"
Sets various libpvm options.  Eg.
.PP
.Vb 1
\&        $oldval=Pvm::setopt(PvmOutputTid,$val);
.Ve
.Vb 1
\&        $oldval=Pvm::setopt(PvmRoute,PvmRouteDirect);
.Ve
.Ip "\f(CWPvm::setrbuf\fR " 0
.IX Item "\f(CWPvm::setrbuf\fR "
Switches the active receive buffer and saves the previous buffer.  Eg.
.PP
.Vb 1
\&        $oldbuf = Pvm::setrbuf($bufid);
.Ve
.Ip "\f(CWPvm::setsbuf\fR" 0
.IX Item "\f(CWPvm::setsbuf\fR"
Switches the active send buffer.  Eg.
.PP
.Vb 1
\&        $oldbuf = Pvm::setsbuf($bufid);
.Ve
.Ip "\f(CWPvm::spawn\fR" 0
.IX Item "\f(CWPvm::spawn\fR"
Starts new \s-1PVM\s0 processes.  Eg.
.PP
.Vb 2
\&        # Pvm::spawn("compute.pl",4,PvmTaskDefault,"");
\&        ($ntask,@tid_list) = Pvm::spawn("compute.pl",4);
.Ve
.Vb 1
\&        ($ntask,@tid_list) = Pvm::spawn("compute.pl",4,PvmTaskHost,"onyx");
.Ve
.Ip "\f(CWPvm::tasks\fR" 0
.IX Item "\f(CWPvm::tasks\fR"
Returns information about the tasks running on the virtual machine. Eg.
.PP
.Vb 2
\&        # Pvm::tasks(0); Returns all tasks
\&        ($info,@task_list) = Pvm::tasks ;
.Ve
.Vb 3
\&        # Returns only for task $tid 
\&        ($info,@task_list) = Pvm::tasks($tid) ;
\&        
.Ve
.Ip "\f(CWPvm::tidtohost\fR" 0
.IX Item "\f(CWPvm::tidtohost\fR"
Returns the host \s-1ID\s0 on which the specified task is running.  Eg.
.PP
.Vb 1
\&        $dtid = Pvm::tidtohost($tid);
.Ve
.Ip "\f(CWPvm::trecv\fR" 0
.IX Item "\f(CWPvm::trecv\fR"
Receive with timeout.  Eg.
.PP



( run in 1.459 second using v1.01-cache-2.11-cpan-71847e10f99 )