Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pvmfmytid(3pvm) [redhat man page]

MYTID(3PVM)							  PVM Version 3.4						       MYTID(3PVM)

NAME
pvm_mytid - Returns the tid of the calling process. SYNOPSIS
C int tid = pvm_mytid( void ) Fortran call pvmfmytid( tid ) PARAMETERS
tid Integer returning the task identifier of the calling PVM process. Values less than zero indicate an error. DESCRIPTION
The routine pvm_mytid enrolls this process into PVM on its first call. It also generates a unique tid if this process was not created by pvm_spawn. pvm_mytid returns the tid of the calling process and can be called multiple times in an application. Any PVM system call (not just pvm_mytid) will enroll a task in PVM if the task is not enrolled before the call. The tid is a 32 bit positive integer created by the local pvmd. The 32 bits are divided into fields that encode various information about this process such as its location in the virtual machine (i.e. local pvmd address), the CPU number in the case where the process is on a multiprocessor, and a process ID field. This information is used by PVM and is not expected to be used by applications. Applications should not attempt to predict or interpret the tid with the exception of calling tidtohost() If PVM has not been started before an application calls pvm_mytid the returned tid will be < 0. EXAMPLES
C: tid = pvm_mytid( ); Fortran: CALL PVMFMYTID( TID ) ERRORS
This error condition can be returned by pvm_mytid PvmSysErr pvmd not responding. SEE ALSO
pvm_tidtohost(3PVM), pvm_parent(3PVM) 30 August, 1993 MYTID(3PVM)

Check Out this Related Man Page

MYTID(3PVM)							  PVM Version 3.4						       MYTID(3PVM)

NAME
pvm_mytid - Returns the tid of the calling process. SYNOPSIS
C int tid = pvm_mytid( void ) Fortran call pvmfmytid( tid ) PARAMETERS
tid Integer returning the task identifier of the calling PVM process. Values less than zero indicate an error. DESCRIPTION
The routine pvm_mytid enrolls this process into PVM on its first call. It also generates a unique tid if this process was not created by pvm_spawn. pvm_mytid returns the tid of the calling process and can be called multiple times in an application. Any PVM system call (not just pvm_mytid) will enroll a task in PVM if the task is not enrolled before the call. The tid is a 32 bit positive integer created by the local pvmd. The 32 bits are divided into fields that encode various information about this process such as its location in the virtual machine (i.e. local pvmd address), the CPU number in the case where the process is on a multiprocessor, and a process ID field. This information is used by PVM and is not expected to be used by applications. Applications should not attempt to predict or interpret the tid with the exception of calling tidtohost() If PVM has not been started before an application calls pvm_mytid the returned tid will be < 0. EXAMPLES
C: tid = pvm_mytid( ); Fortran: CALL PVMFMYTID( TID ) ERRORS
This error condition can be returned by pvm_mytid PvmSysErr pvmd not responding. SEE ALSO
pvm_tidtohost(3PVM), pvm_parent(3PVM) 30 August, 1993 MYTID(3PVM)
Man Page

7 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

what a bunch of idiots...

http://slashdot.org/article.pl?sid=04/01/15/2349201&mode=thread&tid=126&tid=155&tid=95&tid=99 (1 Reply)
Discussion started by: norsk hedensk
1 Replies

2. News, Links, Events and Announcements

Mozilla fire...uh whatever

http://slashdot.org/article.pl?sid=04/03/27/0250250&mode=thread&tid=126&tid=154&tid=95 (0 Replies)
Discussion started by: norsk hedensk
0 Replies

3. News, Links, Events and Announcements

hey! i took that!.....

http://developers.slashdot.org/article.pl?sid=04/05/05/2140200&mode=thread&tid=108&tid=126&tid=146&tid=156&tid=99 (0 Replies)
Discussion started by: norsk hedensk
0 Replies

4. News, Links, Events and Announcements

Linux use in the US Government

http://slashdot.org/article.pl?sid=04/06/24/0135208&mode=thread&tid=106&tid=185 (0 Replies)
Discussion started by: norsk hedensk
0 Replies

5. Shell Programming and Scripting

Sorting/Filed Defining/Output problem

need a little help with a few tid bits. I wrote a script that checks the resoluion of image files and writes them out to a file then sorts the resolutions by largets Width. Then take the sorted files information and toss all the 835 widths into a seperate file. Ignore the redundancies its a... (1 Reply)
Discussion started by: TiredOrangeCat
1 Replies

6. Programming

PThread liberary doubt

I would like to ask that PrintHello accepts a void pointer but how come you can equate it to an integer directly ? " tid = (int)threadid; " while at the same time instead if a pointer a normal variable was passed into this function " pthread_create(&threads, NULL, PrintHello, (void *)t); " ... (2 Replies)
Discussion started by: digi123
2 Replies

7. Shell Programming and Scripting

Cut string from a line into a variable

Hi, I am working on a ksh script and I´m stuck on the following: I have to get the pthread_id from a procstack file for a particular tid#. ---------- tid# 1274057 (pthread ID: 1800) ---------- ---------- tid# 1736913 (pthread ID: 4019) ---------- ---------- tid# 1478705 (pthread ID: ... (7 Replies)
Discussion started by: tmf33uk
7 Replies