Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tt_thread_session(3) [hpux man page]

tt_thread_session(library call) 										   tt_thread_session(library call)

NAME
tt_thread_session -- retrieve the default session identifier for the currently active thread SYNOPSIS
#include <Tt/tt_c.h> char *tt_thread_session( ); DESCRIPTION
The tt_thread_session function retrieves the default session identifier for the currently active thread. If there is no default session set for the currently-active thread, then the process default session identifier is returned. A session can have more than one session identifier. This means, for example, that the application cannot compare the result of tt_thread_session with the result of tt_message_session to verify that the message was sent in the default session. The returned pointer points to the character string name of the session. When no longer needed, it must be freed with tt_free. ARGUMENTS
None. RETURN VALUE
Upon successful completion, the tt_thread_session function returns the pointer to a character string that uniquely identifies the default session for the currently active thread. TT_OK The operation completed successfully. TT_ERR_NOMP The ttsession process is not running and the ToolTalk service cannot start it. TT_ERR_PROCID The current default process identifier is out of date or invalid. TT_ERR_UNIMP The ToolTalk implementation does not support multithreading. TT_ERR_TOOLATE The multithreading feature has not been enabled. APPLICATION USAGE
None. SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_free(3), tt_ptr_error(3) tt_thread_session(library call)

Check Out this Related Man Page

tt_open(library call)													     tt_open(library call)

NAME
tt_open -- return the process identifier for the calling process SYNOPSIS
#include <Tt/tt_c.h> char *tt_open(void) DESCRIPTION
The tt_open function returns the process identifier for the calling process. RETURN VALUE
The tt_open function also sets this identifier as the default procid for the process. The tt_open(3) function is typically the first ToolTalk function called by a process. The application must call tt_open(3) before other tt_ calls are made. However, there are two exceptions: tt_default_session_set(3) and tt_X_session(3) can be called before tt_open. A process can call tt_open more than once to obtain multiple procids. To open another session, the process must make the following calls in the order specified: tt_default_session_set tt_open RETURN VALUE
Upon successful completion, the tt_open function returns the character value that uniquely identifies the process. The application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned pointer: TT_OK The operation completed successfully. TT_ERR_NOMP The ttsession(1) process is not running and the ToolTalk service cannot restart it. APPLICATION USAGE
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. Each procid has its own associated file descriptor, and can join another session. To switch to another procid, the application should call tt_default_procid_set. SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_fd(3), tt_default_procid(3), tt_default_procid_set(3), tt_default_session(3), tt_default_session_set(3), tt_ptr_error(3), tt_free(3). tt_open(library call)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Deleting a user session

I logged on yesterday and ran something that made my ID hang. I X'd out of the session and then logged on again and my ID from the original session is still there. I checked again this morning and the ID is still there (I checked using the WHO command). How can I kill that first session using... (7 Replies)
Discussion started by: jbrubaker
7 Replies

2. Programming

multithreading on OSX

Hi all, I have a query about multithreading. What I would like to do is, at the start of my main update() function, start a couple of threads in parallel, once they are all complete carry on with my main update function. void update() { thread1->update(); // fluid solver ... (3 Replies)
Discussion started by: memoid
3 Replies

3. UNIX for Advanced & Expert Users

multithreading in UNIX

Hi, Can you please give me a suitable reference to learn multithreading programming in C in UNIX? Thanks (3 Replies)
Discussion started by: naan
3 Replies

4. Programming

mutlithreading question

i'm planning to write a simple application that utilizes multithreading. any suggestions on what application i can use? thanks. (5 Replies)
Discussion started by: kelogs1347
5 Replies

5. UNIX for Dummies Questions & Answers

message about glibc

Hi I have a strange phenomenon on putty session connected to RHEL4 server. My session is active but without any activity for 2 or 3 hours and suddenly this message appears on the prompt : $ *** glibc detected *** free(): invalid pointer: 0xb66e0d50 *** Could you have an idea about it ? (2 Replies)
Discussion started by: madmat
2 Replies

6. Solaris

Disable multithreading option on T5240

Hi Gurus Can any one tell me the process of disabling the multithreading option on T5240 server and my OS is on LDOM, having one physical processor with 8 core & 8 thread per core Regards (3 Replies)
Discussion started by: amity
3 Replies

7. UNIX for Dummies Questions & Answers

Bash Processes

Basically, can you create a new ssh session to a server (where there already say a putty session running) and operate using the same bash process? Currently If I start a new connection then it starts a new bash process. So can this be done? Is there any benefit other than less processes? Or am I... (4 Replies)
Discussion started by: Pedro72
4 Replies