Sponsored Content
Contact Us Post Here to Contact Site Administrators and Moderators Not getting any option to post a Forum Post 302483655 by pludi on Tuesday 28th of December 2010 02:54:34 AM
Old 12-28-2010
Only the administrators can create new forums. This isn't 4chan...
This User Gave Thanks to pludi For This Post:
 

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

How do I post UNIX questions in the forum

I guess this is the way I post questions then. (1 Reply)
Discussion started by: kwokang
1 Replies

2. Post Here to Contact Site Administrators and Moderators

forum to post availability for work?

Hello. Is there a forum to post my availability for work? (1 Reply)
Discussion started by: douglaskbell
1 Replies

3. What is on Your Mind?

Anonymous Post Option

There is an option now to post anonymously in this forum. Note the Make Post Anonymously check box option when you post in this forum. https://www.unix.com/members/neo-albums-forum-pics-picture314-anonymous-posting-option.png (1 Reply)
Discussion started by: Neo
1 Replies

4. Post Here to Contact Site Administrators and Moderators

Do I post to Homework forum if learning on own

Quick question, I'm learning shell scripting on my own from resources like the 'Teach Yourself' books, web sites, etc. If I have any questions about these materials, do I still need to post them to the homework section? The template asks specific things like school associated with or... (7 Replies)
Discussion started by: Chasman78
7 Replies

5. UNIX for Dummies Questions & Answers

This forum is closed for new thread ... post here.

This forum is closed for new threads. Please post in this forum: UNIX for Beginners Questions & Answers (0 Replies)
Discussion started by: Neo
0 Replies

6. Post Here to Contact Site Administrators and Moderators

Can you suggest a better forum to post?

Hello! I posted twice on issues I'm having getting the latest GCC compiler to compile ( "Command failed for target 'check-recursive' error" in the Solaris forum and "Compiling GCC 6.3.0 - Error with Library" in the UNIX for Beginners... forum) with zero responses. After many hours of beating my... (0 Replies)
Discussion started by: PJ_Namias
0 Replies

7. What is on Your Mind?

Inserting Attached Files into a Forum Post

OFF_TOPIC Hey ozsavran, Thanks for the great post and photo attachments. Do you mind to explain to me what steps you took to upload and attach those files? I cannot do it and want to attach files like you did. Thanks! (2 Replies)
Discussion started by: Neo
2 Replies
sem_post(2)							System Calls Manual						       sem_post(2)

NAME
sem_post - unlock a POSIX semaphore SYNOPSIS
DESCRIPTION
is used to post the semaphore referenced by sem. The calling thread will not return from its call to unless it can either: increment the semaphore value, if there are no blocked threads on this semaphore; give the semaphore to a blocked thread, if there are any blocked threads on this semaphore; or have an error condition. If the semaphore value is < 0, the semaphore has blocked threads, waiting for it to become available (the absolute value of the semaphore's value indicates the number of waiters at that moment). If the semaphore value is >= 0, the semaphore has no waiters. If the semaphore has no waiters at the time its value is checked, the semaphore's value will be atomically incremented, with respect to the checking of its value, up to its maximum value as specified by If the semaphore has waiters at the time its value is checked, the semaphore value is not changed. Instead, the calling thread will attempt to wake up a waiter. If the semaphore has waiters having realtime priori- ties, the thread must wake up the highest priority waiter. Otherwise the thread at the head of the channel queue is woken up. When a waiter is successfully woken, the semaphore being posted will be given to the woken waiter. In other words, the state of the sema- phore remains unchanged. Instead, the semaphore being posted will be inherited by the waiter being woken from this call to If the specified semaphore referred to by sem is a named semaphore, then this semaphore must have been opened by the calling process with The calling process must have both read and write permissions on the semaphore to perform this operation. The routine may be called asyn- chronously, i.e. from a signal handler. To use this function, link in the realtime library by specifying on the compiler or linker command line. EXAMPLES
The following call to will post the semaphore sem. RETURN VALUE
A successful call to will return 0 and the calling thread would have posted the semaphore. Otherwise, the call to will return -1 with errno set to the appropriate value of the error condition. ERRORS
fails and does not perform the requested operation if any of the following conditions are encountered: [EPERM] The calling process does not have the privileges necessary to post the semaphore. [EINVAL] The argument sem does not refer to a valid semaphore. SEE ALSO
<semaphore.h>. STANDARDS CONFORMANCE
sem_post(2)
All times are GMT -4. The time now is 11:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy