Process management in pvm, Computer Networking

Assignment Help:

Process Management

  • int pvm_mytid( void )

Returns the tid of the calling process.  tid values less than zero indicate an fault.

  • int pvm_exit( void )

Tells the local pvmd that this process is leaving PVM. info Integer status code returned by the routine. Values less than zero shows an error.

  • pvm_spawn( char *task, char **argv, int flag, char *where, int ntask, int

*tids )

start new PVM processes.  task, a character string is the implementable file name of the PVM process to be started. The implementable must already reside on the host on which it is to be in progress. Argv is a pointer to an array of arguments to task. If the implementable needs no arguments, then the second argument to pvm_spawn is NULL. flag Integer states spawn options. where , a characte r string describes where to start the PVM process. If flag is 0, then where is ignored and PVM will select the most appropriate host. ntask ,an integer, describes the number of copies of the implementable to start. tids ,Integer array of length ntask returns the tids of the PVM processes started by this pvm_spawn call. The function returns the real number of processes returned. Negative values shows error.

  • int pvm_kill( int tid )

Terminates a particular PVM process. tid Integer task identifier of the PVM process to be killed (not itself).  Return values less than zero shows an error.

  • int pvm_catchout( FILE *ff )

Catch output from child tasks. ff  is file descriptor on which we type the collected output. The default is to have the PVM type the stderr and stdout of spawned tasks.

Information

  • int pvm_parent( void )

Returns the tid of the process that spawned the calling process.

  • int pvm_tidtohost( tid )

Returns the host of the particular PVM process. Error if negative value is returned.

      int  pvm_config( int *nhost, int *narch, struct pvmhostinfo **hostp )

struct pvmhostinfo {

int hi_tid;

char *hi_name; char *hi_arch; int hi_speed;

};

Returns information about the current virtual machine configuration. nhost  is the number of hosts (pvmds) in the virtual machine. narch is the number of dissimilar data formats  is being used. hostp is pointer to an array of structures which have the information about every host including its pvmd task ID, architecture, name and relative speed(default is 1000).

  • int info = pvm_tasks( int where, int *ntask, struct pvmtaskinfo **taskp )

struct pvmtaskinfo {

 int ti_tid; int ti_ptid;

int ti_host;

int ti_flag; char *ti_a_out; } taskp;

Returns the information regarding the tasks running on the virtual machine. where states what tasks to return the information about. The options are:

0

 for every the tasks on the virtual machine

pvmd tid

for all tasks on a given host

 tid

 for a specific task

ntask returns the number of tasks being reported on.

taskp is a pointer to an array of structures which have the information about every task including its task ID, pvmd task ID, parent tid, status flag, and the name of this task's implementable file. The status flag values are: waiting for the pvmd, waiting for a message, and running.


Related Discussions:- Process management in pvm

Mobile interent technology, Question 3:4 By experimentation, work out the l...

Question 3:4 By experimentation, work out the lowest SNR, under which 4 users can si- multaneously communicate, without error, via this system. For SNR, simply report the largest v

What are the advantages of star topology, What are the advantages of Star T...

What are the advantages of Star Topology? The advantages of star topology are: a. Relatively easy to configure. b. Simple to troubleshoot c. Media faults are automatic

State the disadvantages of ring topology, Point out the disadvantages of Ri...

Point out the disadvantages of Ring Topology. The drawbacks of ring topologies are: a. It is considerably complex to install and reconfigure ring topology b. Media failur

Permutation representation through matrix, Q. Permutation representation th...

Q. Permutation representation through Matrix? Figure: Clos Network The functioning of this above permutation is displayed in Figure. This permutation is able to

Describe at one disadvantage of a peer to peer network, Describe at one dis...

Describe at one disadvantage of a peer to peer network. When you are accessing the resources that are shared by one of the workstations on the network, that workstation takes

Access-list range for an extended ip access-list, Recognize the access-list...

Recognize the access-list range for an extended IP access-list? Ans) IP extended access-lists use the number range of 100-199.

Network Administrator Support, Dear expert; I have an assignment about Net...

Dear expert; I have an assignment about Network Administrator Support . Here is the topic about:- Virtualization is an emerging type of network operating system that is currently

#incident response scenario, assignment is for incident response In this ...

assignment is for incident response In this final week, you will provide a short procedures document (2–3 pages) concerning the steps by which to prepare for and execute expert te

Explain the basic of network properties, Explain the basic of Network Prope...

Explain the basic of Network Properties   The subsequent properties are related with interconnection networks. 1)  Topology: It refers how the nodes a network are systema

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd