Sponsored Content
Full Discussion: Semaphore script
Top Forums Programming Semaphore script Post 302961783 by rovio on Thursday 3rd of December 2015 03:15:18 PM
Old 12-03-2015
Semaphore script

Hello, i have problem with a semaphore script. There must be 3 printers and we have 7 books to print which have 7 chapters each.
Printing times each chapter:
Ch1 => 5 seconds
Ch2 => 6s
Ch3 => 7s
Ch4 => 4s
Ch5 => 5s
Ch6 => 6s
Ch7 => 3s

Any ideas how to write script and solve this problem as fastes we can ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

semaphore

hi, is there any command where we can monitor semaphores? (1 Reply)
Discussion started by: yls177
1 Replies

2. UNIX for Dummies Questions & Answers

Semaphore

Hi, I'm new to UNIX. I need to know what's a semaphore Do reply. Thanks VJ (3 Replies)
Discussion started by: vjsony
3 Replies

3. Solaris

Semaphore Error

Hi, Getting the following error while starting any application on solaris server(Sun-Fire-880) . WARNING ( 357): CORE3283: stderr: 357: CSemCounter created a semaphore with ID 1442787 using key 989897871. WARNING ( 357): CORE3283: stderr: 357: RemoveSem removed semaphore 1442787. ... (1 Reply)
Discussion started by: 009satyendra
1 Replies

4. Shell Programming and Scripting

Semaphore

Hi, I am looking to use a semaphore for the first time in one of my scripts. I am just wondering if there are any simple examples or tutorials around? I am a beginner so the simpler the better :) Thanks -Jaken (2 Replies)
Discussion started by: Jaken
2 Replies

5. UNIX for Dummies Questions & Answers

semaphore

what is semaphore? can any body explain it in a more simple way than the manual ?? replies appreciated Regards raguram R (7 Replies)
Discussion started by: raguramtgr
7 Replies

6. Programming

Semaphore

In my server code there is a thread per client... The server call accept() and after that start the thread. So there is a thread for client that save in RAM the client's message, that will be send to other clients. Now in RAM I have created a shared memory in which thread read and write(save)... (2 Replies)
Discussion started by: italian_boy
2 Replies

7. Shell Programming and Scripting

semaphore

Control two exclusively shared resources(semaphore). The two resources are two files. The producer will write even numbers to one file, and odd numbers to another one. The consumer respectively reads from each file until it gets 5 even numbers and 5 odd numbers. Can any one help me with the... (0 Replies)
Discussion started by: gokult
0 Replies

8. Programming

Semaphore

If I create a semaphore and then I fork a number of child processes then all the child process use that same semaphore. Since the process address spaces are different rfom each other then how all the child process are able to access the same semaphore? I understand that semaphore/mutex is at os... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

9. Solaris

Semaphore

Can anyone tell me abt the Semaphore concept and what is semaphore??? is semaphore id is associated in terms as in resources like semaphore id 1 indicates cpu share unit is given and semaphore id 2 will indicate abt the memore or semaphore id 3 will tell us the i/o components (1 Reply)
Discussion started by: aarjun07
1 Replies

10. UNIX for Beginners Questions & Answers

Semaphore

I was asked to add this piece of code to a c program which I will execute through the shell: for(long i = 0; i < NITER; i++) { sem_wait( &sema); count++; sem_post( &sema); } I didn't get it, which is the critical section ? if it's "count++" how would a thread wake up in order to enter it... (1 Reply)
Discussion started by: uniran
1 Replies
DateTime::Locale::cy_GB(3pm)				User Contributed Perl Documentation			      DateTime::Locale::cy_GB(3pm)

NAME
DateTime::Locale::cy_GB - DateTime locale package for "cy_GB" SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'cy_GB' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Welsh United Kingdom. DATA
This locale inherits from the DateTime::Locale::cy locale. It contains the following data. Days Wide (format) Dydd Llun Dydd Mawrth Dydd Mercher Dydd Iau Dydd Gwener Dydd Sadwrn Dydd Sul Abbreviated (format) Llun Maw Mer Iau Gwen Sad Sul Narrow (format) L M M I G S S Wide (stand-alone) Dydd Llun Dydd Mawrth Dydd Mercher Dydd Iau Dydd Gwener Dydd Sadwrn Dydd Sul Abbreviated (stand-alone) Llun Maw Mer Iau Gwen Sad Sul Narrow (stand-alone) L M M I G S S Months Wide (format) Ionawr Chwefror Mawrth Ebrill Mai Mehefin Gorffenaf Awst Medi Hydref Tachwedd Rhagfyr Abbreviated (format) Ion Chwef Mawrth Ebrill Mai Meh Gorff Awst Medi Hyd Tach Rhag Narrow (format) I C M E M M G A M H T R Wide (stand-alone) Ionawr Chwefror Mawrth Ebrill Mai Mehefin Gorffenaf Awst Medi Hydref Tachwedd Rhagfyr Abbreviated (stand-alone) Ion Chwef Mawrth Ebrill Mai Meh Gorff Awst Medi Hyd Tach Rhag Narrow (stand-alone) I C M E M M G A M H T R Quarters Wide (format) Chwarter 1af 2il chwarter 3ydd chwarter 4ydd chwarter Abbreviated (format) Ch1 Ch2 Ch3 Ch4 Narrow (format) 1 2 3 4 Wide (stand-alone) Chwarter 1af 2il chwarter 3ydd chwarter 4ydd chwarter Abbreviated (stand-alone) Ch1 Ch2 Ch3 Ch4 Narrow (stand-alone) 1 2 3 4 Eras Wide Cyn Crist Oed Crist Abbreviated CC OC Narrow C O Date Formats Full 2008-02-05T18:30:30 = Dydd Mawrth, 05 Chwefror 2008 1995-12-22T09:05:02 = Dydd Gwener, 22 Rhagfyr 1995 -0010-09-15T04:44:23 = Dydd Sadwrn, 15 Medi -10 Long 2008-02-05T18:30:30 = 05 Chwefror 2008 1995-12-22T09:05:02 = 22 Rhagfyr 1995 -0010-09-15T04:44:23 = 15 Medi -10 Medium 2008-02-05T18:30:30 = 5 Chwef 2008 1995-12-22T09:05:02 = 22 Rhag 1995 -0010-09-15T04:44:23 = 15 Medi -10 Short 2008-02-05T18:30:30 = 05/02/2008 1995-12-22T09:05:02 = 22/12/1995 -0010-09-15T04:44:23 = 15/09/-010 Default 2008-02-05T18:30:30 = 5 Chwef 2008 1995-12-22T09:05:02 = 22 Rhag 1995 -0010-09-15T04:44:23 = 15 Medi -10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 PM UTC 1995-12-22T09:05:02 = 9:05:02 AM UTC -0010-09-15T04:44:23 = 4:44:23 AM UTC Long 2008-02-05T18:30:30 = 6:30:30 PM UTC 1995-12-22T09:05:02 = 9:05:02 AM UTC -0010-09-15T04:44:23 = 4:44:23 AM UTC Medium 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM Short 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Default 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM Datetime Formats Full 2008-02-05T18:30:30 = Dydd Mawrth, 05 Chwefror 2008 6:30:30 PM UTC 1995-12-22T09:05:02 = Dydd Gwener, 22 Rhagfyr 1995 9:05:02 AM UTC -0010-09-15T04:44:23 = Dydd Sadwrn, 15 Medi -10 4:44:23 AM UTC Long 2008-02-05T18:30:30 = 05 Chwefror 2008 6:30:30 PM UTC 1995-12-22T09:05:02 = 22 Rhagfyr 1995 9:05:02 AM UTC -0010-09-15T04:44:23 = 15 Medi -10 4:44:23 AM UTC Medium 2008-02-05T18:30:30 = 5 Chwef 2008 6:30:30 PM 1995-12-22T09:05:02 = 22 Rhag 1995 9:05:02 AM -0010-09-15T04:44:23 = 15 Medi -10 4:44:23 AM Short 2008-02-05T18:30:30 = 05/02/2008 6:30 PM 1995-12-22T09:05:02 = 22/12/1995 9:05 AM -0010-09-15T04:44:23 = 15/09/-010 4:44 AM Default 2008-02-05T18:30:30 = 5 Chwef 2008 6:30:30 PM 1995-12-22T09:05:02 = 22 Rhag 1995 9:05:02 AM -0010-09-15T04:44:23 = 15 Medi -10 4:44:23 AM Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Maw 1995-12-22T09:05:02 = 22 Gwen -0010-09-15T04:44:23 = 15 Sad HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hhmm (hh:mm a) 2008-02-05T18:30:30 = 06:30 PM 1995-12-22T09:05:02 = 09:05 AM -0010-09-15T04:44:23 = 04:44 AM HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 hhmmss (hh:mm:ss a) 2008-02-05T18:30:30 = 06:30:30 PM 1995-12-22T09:05:02 = 09:05:02 AM -0010-09-15T04:44:23 = 04:44:23 AM Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d/M) 2008-02-05T18:30:30 = 5/2 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/9 MEd (E, M-d) 2008-02-05T18:30:30 = Maw, 2-5 1995-12-22T09:05:02 = Gwen, 12-22 -0010-09-15T04:44:23 = Sad, 9-15 MMdd (dd/MM) 2008-02-05T18:30:30 = 05/02 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/09 MMM (LLL) 2008-02-05T18:30:30 = Chwef 1995-12-22T09:05:02 = Rhag -0010-09-15T04:44:23 = Medi MMMd (MMM d) 2008-02-05T18:30:30 = Chwef 5 1995-12-22T09:05:02 = Rhag 22 -0010-09-15T04:44:23 = Medi 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Maw Chwef 5 1995-12-22T09:05:02 = Gwen Rhag 22 -0010-09-15T04:44:23 = Sad Medi 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = Chwefror 5 1995-12-22T09:05:02 = Rhagfyr 22 -0010-09-15T04:44:23 = Medi 15 MMMMdd (dd MMMM) 2008-02-05T18:30:30 = 05 Chwefror 1995-12-22T09:05:02 = 22 Rhagfyr -0010-09-15T04:44:23 = 15 Medi MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Maw Chwefror 5 1995-12-22T09:05:02 = Gwen Rhagfyr 22 -0010-09-15T04:44:23 = Sad Medi 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = Maw, 2008-2-5 1995-12-22T09:05:02 = Gwen, 1995-12-22 -0010-09-15T04:44:23 = Sad, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Chwef 1995-12-22T09:05:02 = 1995 Rhag -0010-09-15T04:44:23 = -10 Medi yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Maw, 2008 Chwef 5 1995-12-22T09:05:02 = Gwen, 1995 Rhag 22 -0010-09-15T04:44:23 = Sad, -10 Medi 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Chwefror 1995-12-22T09:05:02 = 1995 Rhagfyr -0010-09-15T04:44:23 = -10 Medi yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Ch1 1995-12-22T09:05:02 = 1995 Ch4 -0010-09-15T04:44:23 = -10 Ch3 yyMMdd (yy-MM-dd) 2008-02-05T18:30:30 = 08-02-05 1995-12-22T09:05:02 = 95-12-22 -0010-09-15T04:44:23 = -10-09-15 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyQQQQ (QQQQ yy) 2008-02-05T18:30:30 = Chwarter 1af 08 1995-12-22T09:05:02 = 4ydd chwarter 95 -0010-09-15T04:44:23 = 3ydd chwarter -10 yyyyMM (MM/yyyy) 2008-02-05T18:30:30 = 02/2008 1995-12-22T09:05:02 = 12/1995 -0010-09-15T04:44:23 = 09/-010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = Chwefror 2008 1995-12-22T09:05:02 = Rhagfyr 1995 -0010-09-15T04:44:23 = Medi -10 Miscellaneous Prefers 24 hour time? No Local first day of the week Dydd Sul SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.10.1 2010-03-19 DateTime::Locale::cy_GB(3pm)
All times are GMT -4. The time now is 05:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy