Sponsored Content
Top Forums Programming Airport using semaphores and shared memo Post 302476061 by Turbo on Tuesday 30th of November 2010 05:50:03 PM
Old 11-30-2010
Airport using semaphores and shared memo

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 know the general, the main idea is to create PIDs on a program done in unix bases, that should work in 2 modes (switch), one on automatic (just puting in the frequency of generating the planes) and the manual conf, by putting in the max of planes to generate and the frequency; only 15 planes are allowed in the air, the others are sent to an other airport;one at a time in the landing route, four gate for passagers move in, and 4 allowed to leave.
Will appreciate your help
greetsSmilie
 

5 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

semaphores and shared 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. Homework & Coursework Questions

Airport using semaphores and shared memo

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... (2 Replies)
Discussion started by: Turbo
2 Replies

3. Shell Programming and Scripting

MEMO: Issue with a for loop

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)

Airport ID instead of machine name in Terminal

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

HOW CAN I PRINT OUT THE MEMO ONLY?

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
GLSTENCILMASK(3G)														 GLSTENCILMASK(3G)

NAME
glStencilMask - control the writing of individual bits in the stencil planes C SPECIFICATION
void glStencilMask( GLuint mask ) PARAMETERS
mask Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. DESCRIPTION
glStencilMask controls the writing of individual bits in the stencil planes. The least significant n bits of mask, where n is the number of bits in the stencil buffer, specify a mask. Where a 1 appears in the mask, it's possible to write to the corresponding bit in the sten- cil buffer. Where a 0 appears, the corresponding bit is write-protected. Initially, all bits are enabled for writing. ERRORS
GL_INVALID_OPERATION is generated if glStencilMask is executed between the execution of glBegin and the corresponding execution of glEnd. ASSOCIATED GETS
glGet with argument GL_STENCIL_WRITEMASK glGet with argument GL_STENCIL_BITS SEE ALSO
glColorMask(3G), glDepthMask(3G), glIndexMask(3G), glStencilFunc(3G), glStencilOp(3G) GLSTENCILMASK(3G)
All times are GMT -4. The time now is 11:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy