12-02-2010
Shared memeory and semaphores are so tricky and root-oriented, I like to make my own using mmap(). No root calls needed. No collisions between users on a scarece resource. No reboot to adjust. A hard copy of the shared memory if the app crashes, visible to any file tool.
Shouldn't the project be in multiple processes, like one per plane, communicating through the IPCs and taking/releasing modeled resources using it? Good Luck.
PS: You are not using the template, expect to be dinged.
5 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
hello,
Can any one please answer these 2 questions?
1. What is the purpose of SEMAPHORES and SHARED MEMORY on a Unix platform?
2. What would require a SYS. ADMIN to set SEMAPHORES and SHARED MEMORY on a Unix platform?
Thanks,
Ted (1 Reply)
Discussion started by: ted
1 Replies
2. Programming
Hi
just doin' this here for the naval school, back here in Pportugal, and needed some help, especially with the shared memo i want to use for the 10 airport gate, and the maximum of 4 planes preparing to leave; canīt figure out how the gate can be id by the same PID. WELL, if someone wants to... (1 Reply)
Discussion started by: Turbo
1 Replies
3. Shell Programming and Scripting
Can someone help me what i am doing wrong with this:
apsrvrport1=28548
stcmsport1=28507
apsrvrport2=38548
stcmsport2=38507
apsrvrport3=48548
stcmsport3=48507
apsrvrport4=58548
stcmsport4=58507
apsrvrport5=38048
stcmsport5=38007
apsrvrport6=27548
stcmsport6=27507
apsrvrport7=37548... (6 Replies)
Discussion started by: mrn6430
6 Replies
4. OS X (Apple)
Hi.
When I open a Terminal window instead of getting the machine's name (i.e. Joe-Bloggs-laptop) I get `unknown-00-1x-5x-cx-ex-ex:~ bloggs$' which is the Mac's Airport ID (ID munged).
I'm on a wireless LAN with one other laptop & three iPhones (Macs running 10.6.8 & iPhones all up to date).
... (9 Replies)
Discussion started by: phildobbin
9 Replies
5. Linux
I tried to print out external memo in LINUX system,
however, each time in the print out also print out
M--.
M--.
in front of the external memo,
my question is
HOW CAN I PRINT OUT THE MEMO ONLY?
THANKS (0 Replies)
Discussion started by: scottblee
0 Replies
LEARN ABOUT DEBIAN
dbf_dump
DBF_DUMP(1p) User Contributed Perl Documentation DBF_DUMP(1p)
NAME
dbf_dump - Dump the record of the dbf file
FORMAT
dbf_dump [options] files
where options are
--rs output record separator (default newline)
--fs output field separator (default colon)
--fields comma separated list of fields to print (default all)
--undef string to print for NULL values (default empty)
--memofile specifies unstandard name of attached memo file
--memosep separator for dBase III dbt's (default x1ax1a)
--nomemo do not try to read the memo (dbt/fpt) file
--info print info about the file and fields
with additional --SQL parameter, outputs the SQL create table
--version print version of the XBase library
--table output in nice table format (only available when
Data::ShowTable is installed, overrides rs and fs)
SYNOPSIS
dbf_dump -fields id,msg table.dbf
dbf_dump -fs=' : ' table
dbf_dump --nomemo file.dbf
ssh user@host 'cat file.dbf.gz' | gunzip - | dbf_dump -
DESCRIPTION
Dbf_dump prints to standard output the content of dbf files listed. By default, it prints all fields, separated by colons, one record on a
line. The output record and column separators can be changed by switches on the command line. You can also ask only for some fields to be
printed.
The content of associated memo files (dbf, fpt) is printed for memo fields, unless you use the "--nomemo" option.
You can specify reading the standard input by putting dash (-) instead of file name.
AVAILABLE FROM
http://www.adelton.com/perl/DBD-XBase/
AUTHOR
(c) 1998--2011 Jan Pazdziora.
SEE ALSO
perl(1); XBase(3pm); index_dump(1p)
perl v5.12.4 2011-08-31 DBF_DUMP(1p)