Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

  • CSC aptitute test questions (17)
  • CSC interview questions (315)
  • CSC placement papers (3)
  • CSC technical test questions (21)



CSC Java Related AllOther Interview Questions
Questions Answers Views Company eMail

what is the difference between Collaboration and Java Collaboration definition interms of JAVACAPS terminology?

1 2832

Post New CSC Java Related AllOther Interview Questions



Un-Answered Questions

What is the diff between cognos 8.1 & cognos 8.2 & cognos 8.3? Measn whet are the enhancements are added in new versions(8.2& 8.3)?

3161


what is the actual difference between casting and moulding? explain pressure die casting process?

16122


can anyone give me the HR related questions of National Insurance's written exam?

1138


in staging we are merging the data and remove the inconsistants data that type of situation what u will done and type of functions u can use

756


I AM APPLY FOR CLERICAL CADRE IN SBI. SO ANYONE SEND ME QUESTION WITH ANSWERS, WHICH ARE RELATED TO THAT JOB. MY EMAIL ID IS shawetasingh24@gmail.com

697






how many filters at durty side in air intake system in siemens v 94.3a

655


Tell me about entire study of finacle software as soon as possible? give me the idea about questions which coulb be asked in interview of pnb it officers?

5685


where rlc series ckt used?

787


how pwm signals generated????

683


what does the track parameter mean in staad.pro?

3706


WHY I WANTED TO JOIN HAWKINS COOKERS LIMITED AS A HR?

1552


Explain LTP.

183


How to Create a template with more than one project?

359


What would be your advantage in the future if you join now?

918


I need help with the following lab. Can anyone explain it to me on how to approach this problem. Coding would be great too !!! No busy waiting allowed. Remember that Java monitors are 'signal and continue'. The input data is called the database (DB). In this problem, it consists of a single variable initialized in the main thread, to contain the current time of day in HH:MM:SS:mmm format (mmm is milliseconds) truncated to 3 digits. Threads follow these rules: 1. Readers may all attempt to read at the same time, but NOT if a writer is writing (i.e.; the writer is in the monitor. 2. Writing is exclusive (only 1 writer at a time, no readers while writing). 3. Options: (to be specified by instructor) a. Readers have absolute priority over writers. b. Writers have absolute priority over readers c. When a reader arrives and a writer is waiting, the reader is suspended behind the writer instead of being admitted immediately. Thus, a writer waits for readers that were running when it arrived, but does not to wait for new readers. You may program this in C++ or Java. There are 4 controlling input values: 1. r – number of readers 2. w – number of writers 3. R – delay for a reader to restart 4. W – delay for a writer to restart Create the following program consisting of 1 main process (your main program) with n threads: 1. The main thread: a. Creates the 'n' threads needed. Of these, r of them are readers and w of them are writers. Starts all readers and writers. b. Waits for all 'n' threads to complete. You may use any method to detect when they are all complete. c. Prints out the resulting outputs from the threads. 2. Threads: a. When a thread starts to run, it immediately tries to enter the monitor. b. A reader thread reads the DB, outputs the exact message below, then exits: >>> DB value read =: HH:MM:SS:mmm by reader number: rr where the underlined text is replaced with actual data. c. A writer thread updates the DB with a new value (from the system time), outputs the exact message below, then exits: *** DB value set to: HH:MM:SS:mmm by writer number: ww where the underlined text is replaced with actual data. d. Each thread accesses the data a total of 10 times, exiting, then re-entering the monitor after each access. Hints: 1. File access *might* not be thread-safe, so you should be prepared to handle this. Read the documentation for the language you are using. 2. Suggested values for delays are: a. If looping, R >=1,000,000 and W>=100,000 b. If using “sleep”, then R=100 ms, W=50 ms. Additional: • Thread output is to ONE file used by ALL threads (so you need to synchronize access to it). • Readers must provide sufficient delay that results are useful (delay by R before re-trying). R is another input value. • Writers must also delay. Delay by W, updating the DB each time. W is an input. • Test your program with AT LEAST TWO different sets of values for r and w (#s of readers and writers) plus this set: r = 4, w=2. Basic operation of a thread: attempt to enter the monitor. If unsuccessful, you get put on a queue. When you get in, read or write the data (depending on type of thread), exit the monitor, wait the required delay amount, then try again. Repeat 10 times.

672






CSC Java Related AllOther Interview Questions
  • C (13)
  • OOPS (2)
  • C++ General (3)
  • VB Script (4)
  • SS7 (1)
  • Protocols AllOther (1)
  • Networking Administration (3)
  • ASP.NET (8)
  • IIS (1)
  • Crystal Reports (3)
  • Dot Net Framework (2)
  • Dot Net General (1)
  • Exchange Server (1)
  • Microsoft Related AllOther (1)
  • Oracle General (2)
  • Database Management (1)
  • SQL Server (7)
  • MySQL (1)
  • DB Administration (7)
  • Databases AllOther (1)
  • Linux Commands (1)
  • Linux Socket Programming (1)
  • Linux AllOther (2)
  • Unix Commands (1)
  • Solaris General (2)
  • Solaris AllOther (2)
  • Data Structures (1)
  • Load Runner (1)
  • QTP (4)
  • Test Director (1)
  • Automation Testing AllOther (1)
  • Manual Testing (31)
  • QA Concepts (2)
  • Test Cases (1)
  • COBOL (12)
  • JCL (14)
  • CICS (3)
  • DB2 (2)
  • IMS (1)
  • IDMS (1)
  • Assembler (3)
  • VSAM (3)
  • IBM MainFrame AllOther (2)
  • RPG400 (12)
  • DB400 (1)
  • IBM AS400 AllOther (2)
  • Core Java (9)
  • Struts (1)
  • J2EE (1)
  • Java Related AllOther (1)
  • XML XSLT RSS (1)
  • Web Related AllOther (2)
  • Teradata (1)
  • Business Objects (3)
  • Cognos (2)
  • Informatica (18)
  • Ab Initio (1)
  • Data Stage (5)
  • Data Warehouse General (1)
  • UML (1)
  • OOAD (1)
  • SAP Basis (5)
  • SAP ABAP (48)
  • SAP SD (6)
  • SAP PM (1)
  • SAP FI CO (5)
  • SAP HR (2)
  • SAP Security (1)
  • SAP Netweaver (1)
  • PeopleSoft HRMS (1)
  • Oracle Apps Technical (1)
  • Oracle Apps Financial (1)
  • Client Server Architecture (1)
  • Client Server General (3)
  • WebMethods (2)
  • SeeBeyond (3)
  • JCAPS (2)
  • Civil Engineering (1)
  • Electrical Engineering (1)
  • Electronics Communications (2)
  • Banking Finance (1)
  • IT Management (1)
  • Audit (1)
  • Accounting General (1)
  • Accounting AllOther (1)
  • Call Centre AllOther (10)
  • SSC AllOther (1)
  • POs (1)
  • Group I (1)
  • APPSC AllOther (1)
  • General Knowledge_Current Affairs (3)
  • Law AllOther (1)
  • General Aptitude (15)
  • Placement Papers (3)
  • L1 Visa (1)
  • C Code (8)
  • C++ Code (1)