Sponsored Content
Full Discussion: Posix threads
Top Forums UNIX for Advanced & Expert Users Posix threads Post 302311831 by pludi on Wednesday 29th of April 2009 05:20:07 PM
Old 04-29-2009
First, please put [code ][/code] tags (sans the space) around your listing, it's easier on the eyes. And since we're on the subject, could you shorten your output?

Second: Your thread has to run 8 printf()s, which translates to about 25 system instructions, times 10 = 250 instructions. Given that even a P90 from the last century can do roughly 90000000 instructions per second, your code is done long before the kernel has any reason to preempt it.
 

9 More Discussions You Might Find Interesting

1. BSD

Posix queues

Hi! Everybody%) I got a question like this: Does my FreeBSD5.1 support Posix queues. Thanks! (7 Replies)
Discussion started by: kamazi
7 Replies

2. UNIX for Dummies Questions & Answers

how to read POSIX?

how to read POSIX? poe six or not? (3 Replies)
Discussion started by: robin.zhu
3 Replies

3. Programming

POSIX threads

Hello ! Let's supose I have a main function in C , and two POSIX threads. I give you an example down : int main() { int something; char else; void *FirstThread(); void *SecondThread(); .. <start those two pthreads ..> return 0;} void *FirstThread() { ... } void *SecondThread()... (2 Replies)
Discussion started by: !_30
2 Replies

4. UNIX for Advanced & Expert Users

Threads and Threads Count ?

Hi all, How can I get the list of all Threads and the Total count of threads under a particular process ? Do suggest !! Awaiting for the replies !! Thanks Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies

5. Programming

Posix

HI, When i am configuring php in SUN Solaris. I am getting the below error. configure: error: Your system seems to lack POSIX threads. Do i need to install POSIX? If so can somebody let me know where can i download POSIX for Solaris 8? Thanks, (2 Replies)
Discussion started by: Krrishv
2 Replies

6. Programming

POSIX threads and data safety

I created multiple POSIX threads (on readhat Linux) in a C program in my app. What I am doing is - I am creating threads equal to the number of CPUs in the system and and equal number of instances of a certain data structure, basically a queue implementation. I am assigning one ID to the thread... (2 Replies)
Discussion started by: radiatejava
2 Replies

7. Programming

need help with posix threads

Hi, I am new to posix threads. The no of threads to be created depends on the runtime. If I get the number of threads, I need to forward declare pthread_t mythread; how to do that can I use pointers and use malloc()?? I also have another question. The pthread_join is used to make... (0 Replies)
Discussion started by: brett01
0 Replies

8. UNIX for Advanced & Expert Users

Linkage of POSIX threads function calls

I wonder if someone knows what is the rationale behind linking function calls of the POSIX threads library at link-time vs. run-time. For example, if I create the following program: #include <pthread.h> void noop() { return; } int main() { pthread_self(); pthread_atfork(noop,... (1 Reply)
Discussion started by: jsimsa
1 Replies

9. UNIX for Advanced & Expert Users

Change value for POSIX

Hi, I have a VM with following configration . 3.10.0-693.1.1.el7.x86_64 #1 SMP Thu Aug 3 08:15:31 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux My current POSIX is :-- Your environment variables take up 2011 bytes POSIX upper limit on argument length (this system): 2093093 POSIX smallest... (15 Replies)
Discussion started by: Abhayman
15 Replies
relup(5)							       Files								  relup(5)

NAME
relup - Release upgrade file DESCRIPTION
The release upgrade file describes how a release is upgraded in a running system. This file is automatically generated by systools:make_relup/3,4 , using a release resource file ( .rel ), application resource files ( .app ) and application upgrade files ( .appup ) as input. FILE SYNTAX
In a target system, the release upgrade file should be located in the OTP_ROOT/erts-EVsn/Vsn directory. The relup file contains one single Erlang term, which defines the instructions used to upgrade the release. The file has the following syn- tax: {Vsn, [{UpFromVsn, Descr, Instructions}, ...], [{DownToVsn, Descr, Instructions}, ...]}. * Vsn = string() is the current version of the release. * UpFromVsn = string() is an earlier version of the release to upgrade from. * Descr = term() is a user defined parameter passed from the systools:make_relup/3,4 function. It will be used in the return value of release_handler:install_release/1,2 . * Instructions is a list of low-level release upgrade instructions, see appup(5) . It consists of the release upgrade instructions from the respective application upgrade files (high-level instructions are translated to low-level instructions), in the same order as in the start script. * DownToVsn = string() is an earlier version of the release to downgrade to. When upgrading from UpFromVsn with release_handler:install_release/1,2 , there does not have to be an exact match of versions, but UpFromVsn can be a sub-string of the current release version. SEE ALSO
app(5), appup(5), rel(5), release_handler(3erl), systools(3erl) Ericsson AB sasl 2.1.9.3 relup(5)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy