01-29-2014
That depends on the application being used.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Everyone,
Perl command syntax that would display my ... C:\dir ....
Regards,
asabzevari (1 Reply)
Discussion started by: asabzevari
1 Replies
2. UNIX for Advanced & Expert Users
hi all
i was going through some perl code i came across this line and i am not getting what is exactly going on ..
$$this{localtion} = GetName->GetVarName("EXE_DIR") ;
what is the red part doing in above code (2 Replies)
Discussion started by: zedex
2 Replies
3. Shell Programming and Scripting
All,
Does it matter what perl verios your running when you get syntax errors?
on version 5.6.1 the code works fine, but on 5.8.0 the code gets errors?
#!/usr/bin/perl
#use strict;
#use warnings;
my $mess = 'messages';
my $mess1 = 'messages.1';
my $mess2 = 'messages.2';
my... (13 Replies)
Discussion started by: bigben1220
13 Replies
4. Shell Programming and Scripting
Im new at scripting and im trying to write a script using perl that will make sure there are 2 command line integer arguments and then check if the 2nd argument is greater than the first. i believe im close but still receive my error message even when i have 2 arguments and the second part gives me... (6 Replies)
Discussion started by: livewire06
6 Replies
5. Shell Programming and Scripting
Hi,
I am a newbie to PERL and working on a script. When running it I get a lot of compilation errors.
The actual command in the program (which is within a case structure) is given below
# This gives the actual count of inquires from a log file (It works fine when I type this on the... (2 Replies)
Discussion started by: nurani
2 Replies
6. Shell Programming and Scripting
I'm just trying to confirm that I understand someone's code correctly.
If someone has code that says:
$foo ||= mysub();
I'm assuming that it means if $foo is nothing or undef, then assign it some value via mysub(). If I'm wrong on this, please let me know.
Also, what's the difference... (4 Replies)
Discussion started by: mrwatkin
4 Replies
7. Programming
Hi,
i am running this code but i am getting syntax error
#!/usr/bin/perl
use warnings;
use strict;
use XML::LibXML;
use XML::LibXML::Reader;
use Data::Dumper;
my $file;
open( $file, 'DTC_Specification_transformed.xml');
my $reader = XML::LibXML::Reader->new( IO => $file ) or die... (1 Reply)
Discussion started by: veerubiji
1 Replies
8. Programming
Hallo everybody,
I have a following problem - I'm doing a map funciont to fill in a HTML table and I want to use some radiobutton groups. Unfortunatelly, they are grouped by names, so I have to add some "counter" that will divide one row from another, and I'm using CGI.pm for generating the... (3 Replies)
Discussion started by: duskos
3 Replies
9. Shell Programming and Scripting
I'm a newbie to perl scripting. Can someone please explain the syntax below. Specifically what does -> and => do?
$tz->site( => $site); (10 Replies)
Discussion started by: scj2012
10 Replies
10. Shell Programming and Scripting
Greetings!
Here's what I believe is a "simple one" for the community tonight ;)
What I'm trying to do is assign a "true/false" value to a variable depending upon whether a named process (some-process) exists; and then test for this value in the succeeding logic. I banged my head against the... (2 Replies)
Discussion started by: LinQ
2 Replies
LEARN ABOUT FREEBSD
pthread_getconcurrency
PTHREAD_GETCONCURRENCY(3) BSD Library Functions Manual PTHREAD_GETCONCURRENCY(3)
NAME
pthread_getconcurrency, pthread_setconcurrency -- get or set level of concurrency
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread.h>
int
pthread_getconcurrency(void);
int
pthread_setconcurrency(int new_level);
DESCRIPTION
The pthread_setconcurrency() function allows an application to inform the threads implementation of its desired concurrency level, new_level.
The actual level of concurrency provided by the implementation as a result of this function call is unspecified. If new_level is zero, it
causes the implementation to maintain the concurrency level at its discretion as if pthread_setconcurrency() was never called. The
pthread_getconcurrency() function returns the value set by a previous call to the pthread_setconcurrency() function. If the
pthread_setconcurrency() function was not previously called, this function returns zero to indicate that the implementation is maintaining
the concurrency level. When an application calls pthread_setconcurrency(), it is informing the implementation of its desired concurrency
level. The implementation uses this as a hint, not a requirement.
RETURN VALUES
If successful, the pthread_setconcurrency() function returns zero. Otherwise, an error number is returned to indicate the error. The
pthread_getconcurrency() function always returns the concurrency level set by a previous call to pthread_setconcurrency(). If the
pthread_setconcurrency() function has never been called, pthread_getconcurrency() returns zero.
ERRORS
The pthread_setconcurrency() function will fail if:
[EINVAL] The value specified by new_level is negative.
[EAGAIN] The value specified by new_level would cause a system resource to be exceeded.
APPLICATION USAGE
Use of these functions changes the state of the underlying concurrency upon which the application depends. Library developers are advised to
not use the pthread_getconcurrency() and pthread_setconcurrency() functions since their use may conflict with an application's use of these
functions.
STANDARDS
The pthread_getconcurrency() and pthread_setconcurrency() functions conform to Version 2 of the Single UNIX Specification (``SUSv2'').
BSD
April 11, 2003 BSD