Sponsored Content
Full Discussion: Plzzzz Help its urgent
Homework and Emergencies Homework & Coursework Questions Plzzzz Help its urgent Post 302558690 by BTiwari on Sunday 25th of September 2011 02:19:49 AM
Old 09-25-2011
Error Plzzzz Help its urgent

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
Consider the following set of processes:
Process Burst time (ms)
P1 10
P2 29
P3 3
P4 7
P5 12 Evaluate the performance of FCFS, SJF and RR (Quantum = 10 ms) algorithms for scheduling the above processes.



2. Relevant commands, code, scripts, algorithms:
give me the algorithms for the question

3. The attempts at a solution (include all code and scripts):
no attempts


4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
IGNOU,Mumbai(Maharashtra),India BCA

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
 

9 More Discussions You Might Find Interesting

1. Solaris

Need Help Urgent

Hi. My E250 server (Solaris 8) running oracle database gets hangup in between. I checked the logs in /var/adm/messages but could not find anything related to this. can anyone help me out? bala (3 Replies)
Discussion started by: balaji_prk
3 Replies

2. UNIX for Advanced & Expert Users

URGENT,URGENT- Need help tape drive installation

Hi, I am trying to attach tape drive to sun V890 running Solaris 9 on it. I have installed HBA(qlogic) in slot 1 of 0-8 slots and booted the system. I do not see HBAin prtdiag output. The tape drive is not attached to HBA. The tape drive I am going to attach is Sony AIT3. 1.How can I make... (3 Replies)
Discussion started by: sriny
3 Replies

3. UNIX for Advanced & Expert Users

need help urgent...........

Hi friends.. I am using the below command to search few files from many folders which is under one folder.. i mean let say the path is A/B/C...and inside C...i have 1-10 folder... the below command is working fine.... for i in 1 3 5 7; do find /A/B/C/${i} -name "*.txt" -o -name "*.csv"... (3 Replies)
Discussion started by: sapan123
3 Replies

4. Shell Programming and Scripting

Urgent Please help me out here!!!

Hi, Without using DBI/DBD, i need to run the given below script in PERL in different oracle databases in a single server. PERL Script: #!usr/bin/perl -w $c=`ps -ef |grep -v grep|grep pmon|sed -e 's/.*_//|sort -u >dbname.log`; $cnt=`ps -ef |grep -v grep|grep pmon|sed -e... (6 Replies)
Discussion started by: appu.dba
6 Replies

5. Red Hat

urgent

abb 117.96.113.21 cgg 101.2.104.42 cgg 110.227.247.236 desk 203.20.35.28 png 1.39.242.241 png 1.39.242.241 rzx 101.2.104.42 rzx 115.246.160.36 abb 49.138.242.187 how to find the count of this file wtrto ip thnx in advance (4 Replies)
Discussion started by: himanshu1.singh
4 Replies

6. Shell Programming and Scripting

Urgent!!

Hi I have a file containing DE 3'UTR in Homo sapiens alpha-1-B glycoprotein (A1BG), mRNA. SQ Sequence 216 BP; 37 A; 58 C; 69 G; 52 T; 0 other; DE 3'UTR in Homo sapiens alpha-1-B glycoprotein (A1BG), mRNA. SQ Sequence 1844 BP; 358 A; 483 C; 434 G; 569 T; 0 other; DE 3'UTR in Homo... (1 Reply)
Discussion started by: jyotirmoy21
1 Replies

7. Shell Programming and Scripting

Need Urgent help

Hi friends, I need urgent help here: Issue: I need to create shell script that will find the files & throw an error through job (autosys) when file not found. Daily we use to receive 3 files from a system. Obstacles: 1) All 3 files names are same. 2) Timestamp is same. 3)... (1 Reply)
Discussion started by: tush
1 Replies

8. Shell Programming and Scripting

Need urgent help

Hi geeks, I'm trying to write a below script, but it throws an error, please check and correct me. #!/bin/bash #The below script will extract the string error1 error2 and error3 and also it will count and list the occurrence count1='grep -i "error1" test.txt | wc -l' count2='grep -i "error2"... (4 Replies)
Discussion started by: naren nandale
4 Replies

9. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
cdk_template(3) 					     Library Functions Manual						   cdk_template(3)

NAME
cdk_template - a curses template widget. SYNOPSIS
cc [ flag ... ] file ... -lcdk [ library ... ] #include <cdk.h> char *activateCDKTemplate ( CDKTEMPLATE *template, chtype * actions); void cleanCDKTemplate ( CDKTEMPLATE *template); void destroyCDKTemplate ( CDKTEMPLATE *template); void drawCDKTemplate ( CDKTEMPLATE *template, boolean box); void eraseCDKTemplate ( CDKTEMPLATE *template); boolean getCDKTemplateBox ( CDKTEMPLATE *template); int getCDKTemplateMin ( CDKTEMPLATE *template); char *getCDKTemplateValue ( CDKTEMPLATE *template); char *injectCDKTemplate ( CDKTEMPLATE *template, chtype input); char *mixCDKTemplate ( CDKTEMPLATE *template); void moveCDKTemplate ( CDKTEMPLATE *template, int xpos, int ypos, boolean relative, boolean refresh); CDKTEMPLATE *newCDKTemplate ( CDKSCREEN *cdkscreen, int xpos, int ypos, char *title, char *label, char *plate, char *overlay, boolean box, boolean shadow); void positionCDKTemplate ( CDKTEMPLATE *template); void setCDKTemplate ( CDKTEMPLATE *template, char *value, boolean box); void setCDKTemplateBackgroundAttrib ( CDKTEMPLATE *template, chtype attribute); void setCDKTemplateBackgroundColor ( CDKTEMPLATE *template, char * color); void setCDKTemplateBox ( CDKTEMPLATE *template, boolean box); void setCDKTemplateBoxAttribute ( CDKTEMPLATE *template, chtype character); void setCDKTemplateCB ( CDKTEMPLATE *template, TEMPLATECB callbackFunction); void setCDKTemplateHorizontalChar ( CDKTEMPLATE *template, chtype character); void setCDKTemplateLLChar ( CDKTEMPLATE *template, chtype character); void setCDKTemplateLRChar ( CDKTEMPLATE *template, chtype character); void setCDKTemplateMin ( CDKTEMPLATE *template, int minimum); void setCDKTemplatePostProcess ( CDKTEMPLATE *template, PROCESSFN callback, void * data); void setCDKTemplatePreProcess ( CDKTEMPLATE *template, PROCESSFN callback, void * data); void setCDKTemplateULChar ( CDKTEMPLATE *template, chtype character); void setCDKTemplateURChar ( CDKTEMPLATE *template, chtype character); void setCDKTemplateValue ( CDKTEMPLATE *template, char *value); void setCDKTemplateVerticalChar ( CDKTEMPLATE *template, chtype character); char *unmixCDKTemplate ( CDKTEMPLATE *template, char *string); DESCRIPTION
The Cdk template widget creates a template widget which allows a user to type information into an entry field with a pre-set field format. Typical uses for this widget would be a date field or a time field. The following are functions which create or manipulate the Cdk tem- plate box widget. AVAILABLE FUNCTIONS
activateCDKTemplate activates the template widget and lets the user interact with the widget. The parameter template is a pointer to a non-NULL template widget. If the actions parameter is passed with a non-NULL value, the characters in the array will be injected into the widget. To activate the widget interactively pass in a NULL pointer for actions. If the character entered into this widget is RETURN or TAB then this function will return a char * representing the information typed into the widget and the widget data exitType will be set to vNORMAL. If the character entered was ESCAPE then the function will return NULL pointer and the widget data exitType is set to vESCAPE_HIT. cleanCDKTemplate clears the information from the field. destroyCDKTemplate removes the widget from the screen and frees any memory the object used. drawCDKTemplate draws the template widget on the screen. If box is true, the widget is drawn with a box. eraseCDKTemplate removes the widget from the screen. This does NOT destroy the widget. getCDKTemplateBox returns true if the widget will be drawn with a box around it. getCDKTemplateMin returns the minimum characters that must be entered before the widget will exit. getCDKTemplateValue returns the current value of the widget. injectCDKTemplate injects a single character into the widget. The parameter template is a pointer to a non-NULL template widget. The parameter charac- ter is the character to inject into the widget. The return value and side-effect (setting the widget data exitType) depend upon the injected character: RETURN or TAB the function returns a char * representing the information typed into the widget. The widget data exitType is set to vNORMAL. ESCAPE the function returns a NULL pointer. The widget data exitType is set to vESCAPE_HIT. Otherwise unless modified by preprocessing, postprocessing or key bindings, the function returns a NULL pointer. The widget data exit- Type is set to vEARLY_EXIT. mixCDKTemplate returns a char* pointer to the field value and the plate. moveCDKTemplate moves the given widget to the given position. The parameters xpos and ypos are the new position of the widget. The parameter xpos is an integer or one of the predefined values TOP, BOTTOM, and CENTER. The parameter ypos may be an integer or one of the pre-defined values LEFT, RIGHT, and CENTER. The parameter relative states whether the xpos/ypos pair is a relative move or an absolute move. For example, if xpos = 1 and ypos = 2 and relative = TRUE, then the widget would move one row down and two columns right. If the value of relative was FALSE then the widget would move to the position (1,2). Do not use the values TOP, BOTTOM, LEFT, RIGHT, or CENTER when relative = TRUE (weird things may happen). The final parameter refresh is a boolean value which states whether the widget will be repainted after the move. newCDKTemplate creates a template widget, returning a pointer to it. Parameters: screen is the screen you wish this widget to be placed in. xpos controls the placement of the object along the horizontal axis. It may be an integer or one of the pre-defined values LEFT, RIGHT, and CENTER. ypos controls the placement of the object along the vertical axis. It may be an integer or one of the pre-defined values TOP, BOTTOM, and CENTER. title is the string to display at the top of the widget. The title can be more than one line; just provide a carriage return character at the line break. label is the string to display in the label of the template field. plate defines the character to allow at each position in the template field. This is done by creating a character plate by using spe- cial format character to tell the template widget what type of character is allowed where in the template widget. The following table lists the format types. Plate_Character Effect ------------------------------------------------------ # Accepts an integer. A Accepts an alphabetic value. C Accepts an alphabetic value. Auto- matically converts the character to upper case. c Accepts an alphabetic value. Auto- matically converts the character to lower case. M Accepts alphanumeric characters. X Accepts alphanumeric characters. Automatically converts the charac- ter to upper case. x Accepts alphanumeric characters. Automatically converts the charac- ter to upper case. Anything else Ignored and assumed a non-editable position. ------------------------------------------------------ overlay is the overlay of the template field. If the field needs some sort of overlay, this parameter supplies this. A date field could have YY/MM/DD, the overlay parameter would display YY/MM/DD on an empty template field. box is true if the widget should be drawn with a box around it. shadow turns the shadow on or off around this widget. If the widget could not be created then a NULL pointer is returned. positionCDKTemplate allows the user to move the widget around the screen via the single keystroke commands. See cdk_position (3) for key bindings. setCDKTemplate lets the programmer modify certain elements of an existing template widget. The parameter names correspond to the same parameter names listed in the newCDKTemplate function. setCDKTemplateBackgroundAttrib sets the background attribute of the widget. The parameter attribute is a curses attribute, e.g., A_BOLD. setCDKTemplateBackgroundColor sets the background color of the widget. The parameter color is in the format of the Cdk format strings. For more information, see the cdk_display (3). setCDKTemplateBox sets a flag, true if the widget will be drawn with a box around it. setCDKTemplateBoxAttribute sets the attribute of the box. setCDKTemplateCB allows the programmer to set a different widget input handler. The parameter callbackFunction is of type TEMPLATECB. The default input handler is CDKTemplateCallBack. setCDKTemplateHorizontalChar sets the horizontal drawing character for the box to the given character. setCDKTemplateLLChar sets the lower left hand corner of the widget's box to the given character. setCDKTemplateLRChar sets the lower right hand corner of the widget's box to the given character. setCDKTemplateMin sets the minimum number of characters that must be entered before the widget will exit. setCDKTemplatePostProcess allows the user to have the widget call a function after the key has been applied to the widget. To learn more about post-processing see cdk_process (3). setCDKTemplatePreProcess allows the user to have the widget call a function after a key is hit and before the key is applied to the widget. To learn more about preprocessing see cdk_process (3). setCDKTemplateULChar sets the upper left hand corner of the widget's box to the given character. setCDKTemplateURChar sets the upper right hand corner of the widget's box to the given character. setCDKTemplateValue sets a value in the widget. setCDKTemplateVerticalChar sets the vertical drawing character for the box to the given character. unmixCDKTemplate returns a char* pointer to the field value without any plate characters. KEY BINDINGS
When the widget is activated there are several default key bindings which will help the user enter or manipulate the information quickly. The following table outlines the keys and their actions for this widget. +----------------+-------------------------------------+ |Key | Action | +----------------+-------------------------------------+ +----------------+-------------------------------------+ |Delete | Deletes the character at the cur- | | | sor. | +----------------+-------------------------------------+ |Backspace | Deletes the character before cur- | | | sor, moves cursor left. | +----------------+-------------------------------------+ |Ctrl-P | Pastes whatever is in the paste | | | buffer, into the widget. | +----------------+-------------------------------------+ |Ctrl-K | Cuts the contents from the widget | | | and saves a copy in the paste buf- | | | fer. | +----------------+-------------------------------------+ |Ctrl-T | Copies the contents of the widget | | | into the paste buffer. | +----------------+-------------------------------------+ |Ctrl-E | Erases the contents of the widget. | +----------------+-------------------------------------+ |Return | Exits the widget and returns a | | | char* representing the information | | | which was typed into the field. It | | | also sets the widget data exitType | | | to vNORMAL. | +----------------+-------------------------------------+ |Tab | Exits the widget and returns a | | | char* representing the information | | | which was typed into the field. It | | | also sets the widget data exitType | | | to vNORMAL. | +----------------+-------------------------------------+ |Escape | Exits the widget and returns a NULL | | | pointer. It also sets the widget | | | data exitType to vESCAPE_HIT. | +----------------+-------------------------------------+ |Ctrl-L | Refreshes the screen. | +----------------+-------------------------------------+ SEE ALSO
cdk(3), cdk_binding(3), cdk_display(3), cdk_screen(3) cdk_template(3)
All times are GMT -4. The time now is 02:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy