11-16-2010
9 More Discussions You Might Find Interesting
1. Linux
Hi
I am starting a project in which I want to use APR for
portability.
I download APR version 1.2.2 from "http://apr.apache.org/download.cgi#apr1"
and I am using Redhat/Linux 9.
As I am a newbie to APR and I have no prior experience of
using APR, so I started learning it from:... (0 Replies)
Discussion started by: sumsin
0 Replies
2. Shell Programming and Scripting
For historical, simple, practical and portable reasons my scripts start normally with "#!/bin/sh", hence I restrict myself to those features available in the Bourne Shell.
The few cases where I would use ksh or bash is if I know this script is targetted at some subset of platforms where that is... (0 Replies)
Discussion started by: porter
0 Replies
3. Shell Programming and Scripting
Dear Experts,
I want to write a script which has to work on Solaris & Linux sytems.
The problem which i am facing is, there are commands whose options are different on both OS's. For example ping.
On Solaris i have to write:
ping $host 1
to check if the host is alive
On Linux i... (4 Replies)
Discussion started by: dhiraj4mann
4 Replies
4. UNIX and Linux Applications
Hey guys/gals,
I work with a large amount of servers, and was just curious if it is possible to make a linux AV app, portable. What i mean is, I go to a user's home directory and do something like ./clamavscan (I suppose an alias for clamscan..), and it scans the user's home directory for... (2 Replies)
Discussion started by: Rhije
2 Replies
5. Linux
What I have been doing for some time now is installing linux on my tech machine at work, plugging in devices and transferring data with dd_rescue.
What I need now is a version of linux that I can install on a laptop sata hard drive and be able to plug it into any machine to transfer data off of... (1 Reply)
Discussion started by: Methal
1 Replies
6. Programming
Hello
Im stuck with a project on converting existing applications in to their portable versions, What i mean is that i want an application to run on a Linux OS without the need of actually installing the application on that machine. My preffered OS is fedora as it is used on most machines in my... (0 Replies)
Discussion started by: engineeringme
0 Replies
7. UNIX for Advanced & Expert Users
Hello
Im stuck with a project on converting existing applications in to their portable versions, What i mean is that i want an application to run on a Linux OS without the need of actually installing the application on that machine. My preffered OS is fedora as it is used on most machines in my... (1 Reply)
Discussion started by: engineeringme
1 Replies
8. UNIX and Linux Applications
Hello
Im stuck with a project on converting existing applications in to their portable versions, What i mean is that i want an application to run on a Linux OS without the need of actually installing the application on that machine. My preffered OS is fedora as it is used on most machines in my... (1 Reply)
Discussion started by: engineeringme
1 Replies
9. Programming
Hi. I am looking for a way to write C++ code that will kill a process, and works just the same way in both Unix and Windows. For my particular situation, it cannot be hundreds of lines of code, either. Thanks in advance for any light you can shed on this.
Brandon (5 Replies)
Discussion started by: BrandonShw
5 Replies
LEARN ABOUT CENTOS
pthread_yield
PTHREAD_YIELD(3) Linux Programmer's Manual PTHREAD_YIELD(3)
NAME
pthread_yield - yield the processor
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <pthread.h>
int pthread_yield(void);
Compile and link with -pthread.
DESCRIPTION
pthread_yield() causes the calling thread to relinquish the CPU. The thread is placed at the end of the run queue for its static priority
and another thread is scheduled to run. For further details, see sched_yield(2)
RETURN VALUE
On success, pthread_yield() returns 0; on error, it returns an error number.
ERRORS
On Linux, this call always succeeds (but portable and future-proof applications should nevertheless handle a possible error return).
CONFORMING TO
This call is nonstandard, but present on several other systems. Use the standardized sched_yield(2) instead.
NOTES
On Linux, this function is implemented as a call to sched_yield(2).
SEE ALSO
sched_setscheduler(2), sched_yield(2), pthreads(7)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2013-03-05 PTHREAD_YIELD(3)