pthread_t (object)
pthread_attr_t (object) --- pthread_attr_init,pthread_attr_destroy
Thread’s detach state.A thread may be created as a joinable
thread (the default) or as a detached thread.
pthread_attr_setdetachstate
pthread_detach
Even if a thread is created in a joinable state, it may later be
turned into a detached thread.To do this, call pthread_detach.
Once a thread is detached, it cannot be made joinable again.
pthread_create
pthread_self
pthread_equal
pthread_exit
pthread_cancel --> PTHREAD_CANCELED
A canceled thread may later be joined; in fact, you should join
a canceled thread to free up its resources, unless the thread is
detached
asynchronously cancelable.
synchronously cancelable - cancellation points.The thread will
queue a cancellation request until it
reaches the next cancellation point.
uncancelable
pthread_setcanceltype
PTHREAD_CANCEL_ASYNCHRONOUS OR PTHREAD_CANCEL_DEFERRED
pthread_testcancel - direct way to create a cancellation point
- process a pending cancellation in a
synchronously cancelable thread.
pthread_key_t(object) --- pthread_key_create,pthread_setspecific,pthread_getspecific
thread-specific data area.
pthread_join
Blog Archive
-
▼
2007
(55)
-
▼
Apr
(48)
- Socket Programming
- Pthreads
- Virtual Memory Management
- How a system call is implemented?
- Inter-process communication
- How malloc has been implemented (brk system call)?
- Linux Modules - How are they linked dynamically?
- Proc File System
- fork, vfork, copy-on-write and clone
- CPU Scheduling -- Different types of CPU schedulin...
- Signals (System V and POSIX)
- How mapping from virtual address address to physic...
- setuid program (real and effective user ids)
- Exceptions, traps, interrupts and signals
- Processor execution levels
- Process Address Space
- Unix/Linux File System Layout
- Salient points about Unix/Linux
- Big Endian versus Little Endian
- Semaphore, Mutex, Conditional variable, Spin lock
- Segmentation Fault and Bus Error
- wait() system call
- Bottom half
- Linux time keeping - Timer interrupt, jiffies, xtime
- Position Independent Code (PIC)
- kmalloc/kfree and vmalloc/vfree
- Static versus shared objects
- How many processes will be created-- fork?
- Can we get return value from exec system call?
- How does profiling code works? -- processor debug ...
- ptrace - how does it work?
- Record locking
- GNU Linux pthreads
- How do you use RSA for both authentication and sec...
- Unix/Linx bootupand login
- What are various problems unique to distributed da...
- cooperative,preemption,non preemption
- Puzzles
- Write system call that prints stack trace at that ...
- DMA (Direct Memory Access)
- Real Time Systems
- Comparison of IOS and General Purpose OS like Linux
- Operating Systems I/O Structure
- Linux - Process Scheduling
- Deadlock avoidance and prevention
- Porting from 32 bit OS to 64 bit OS
- Sign extension
- How to make an application daemon
-
▼
Apr
(48)
No comments:
Post a Comment