06-08-2005
Thanks again.
Sorry about the lengthy thread, I usually try to make my inquiries with as much detail as possible to avoid confusion but half the time I guess I achieve the opposite.
Yes, you understood my thread perfectly. And yes, I think that will be enough for what I wish to do now.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I was just wondering if it would be alright to dual boot a machine with both UNIX using XTERM for the interface and windows 98 or if people consider this a bad idea? if you consider it bad do tell me some possible alternatives..also would it be better to get linux over pure unix? I'd like a visual... (8 Replies)
Discussion started by: PravusMentis
8 Replies
2. UNIX for Dummies Questions & Answers
I was told that it's a Bad Idea (especially for root ) to Add To the Variable $PATH in unix the ":." (dot),
In order to execute programs in my current directory without typing ./program
For example: PATH=$PATH:$HOME/bin:.
Does someone know why is it a Bad Idea? (2 Replies)
Discussion started by: amitbern
2 Replies
3. Shell Programming and Scripting
txt file like this,
1 2 3 4456
a bb c d 3 f e
1 k 32 d m f e
123 m 2 k
every line contains 3 or more columns, all the columns are separated by space, and every column includes 1 to 3 character.
what I wanna do is deleting the first three columns, and keep the rest no matter how long... (7 Replies)
Discussion started by: fedora
7 Replies
4. Shell Programming and Scripting
Reading this file. I want to read all 4 fields.
If 2 is populated with a p, I want to set $TYPEP to "Printers",
if not should be empty.
If 3 is populated with an r, I want to set $TYPER to "REQ Printers"
if not should be empty.
If 4 is populated with letter o, I want to set $TYPEO to... (12 Replies)
Discussion started by: Skyybugg
12 Replies
5. OS X (Apple)
Well i was tidying up some files in a very important directory on our development server and somehow some plank had put a recursive sybmolic link in it. Which I the even bigger plank tried to delete from my FTP client. My FTP client then thought it would be OK to delete not only the sybmolic link... (0 Replies)
Discussion started by: timgolding
0 Replies
6. UNIX for Advanced & Expert Users
Hi folks.
I work with several production servers, and I have seen in some Kernel Cache using most of the memory.
See this pic:
http://i51.tinypic.com/301nb6c.jpg
Do you think this is a smart choice? Remember these are productions servers and it is extremely necesary this does not... (6 Replies)
Discussion started by: erick_tuk
6 Replies
7. Red Hat
is placing two RAID5 arrays on disk as shown below Is advisable? Will this create performance problems?
sda-(500GB) sdb-(1TB) sdc-(1TB) sdd-(1TB)
(250MB)----------(250MB) ---------unused------------unused------->(/dev/md0) RAID1
... (6 Replies)
Discussion started by: Saed
6 Replies
8. Shell Programming and Scripting
Hi,
I have a shell script where a lot of the code is repeated. I wanted to make the code much more compact so I spoke to a guy and he suggested using arrays, like follows:
#!/bin/bash
readonly -a nginx=('nginx' '--prefix=/opt' '-j 4'
'http://nginx.org/download/nginx-1.2.2.tar.gz'
)... (2 Replies)
Discussion started by: Spadez
2 Replies
LEARN ABOUT HPUX
pthread_cancel
pthread_cancel(3T) pthread_cancel(3T)
NAME
pthread_cancel() - cancel execution of a thread
SYNOPSIS
PARAMETERS
thread Target thread to be canceled.
DESCRIPTION
requests that thread (hereby referred to as target thread) be canceled. It allows a thread to terminate the execution of any thread in the
process in a controlled manner.
The target thread's cancelability state and type determine when the cancellation takes effect. Cancellation only occurs when the target
thread's cancelability state is When the target thread's cancelability state is cancellation requests against the target thread are held
pending and will be acted upon when cancellation is enabled.
When the cancelability type is for the target thread, new or pending cancellation requests are acted upon at any time. When the target
thread's cancelability type is cancellation requests are held pending until the target thread reaches a cancellation point (see below).
If the target thread's cancelability state is disabled, the cancelability type does not matter. When cancelability is enabled, the cance-
lability type will take effect.
When the cancellation is acted on, the cancellation cleanup handlers for thread are called. The cancellation cleanup handlers are called
in the opposite order in which they were installed. When the last cancellation cleanup handler returns, the thread-specific data destruc-
tor functions for thread are called. When the last destructor function returns, thread shall be terminated.
The caller of will not wait for the target thread to be canceled.
Cancellation Points
are points inside of certain functions where a thread must act on any pending cancellation request when cancelability is enabled if the
function would block.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
For each of the following conditions, if the condition is detected, the function returns the corresponding error number:
[ESRCH] No thread could be found corresponding to thread.
WARNINGS
Use of asynchronous cancelability while holding resources that need to be released may result in resource loss. Applications must care-
fully follow static lexical scoping rules in their execution behavior. For instance, the use of return, goto, etc., to leave user-defined
cancellation scopes without doing the necessary scope pop will result in undefined behavior.
AUTHOR
was derived from the IEEE POSIX P1003.1c standard.
SEE ALSO
pthread_exit(3T), pthread_join(3T), pthread_setcancelstate(3T), pthread_cleanup_pop(3T), pthread_cond_wait(3T).
STANDARDS CONFORMANCE
Pthread Library pthread_cancel(3T)