LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2012, 01:21 PM   #1
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 102
Blog Entries: 1

Rep: Reputation: Disabled
multi-threaded environment questions. willing to know new things as I am going to wrk


Problem Statement:
Design and Implement a Task Execution System which accepts the tasks from a client application and execute the task. The details are given below

Client:
Client will create the following types of Task
1. Task 1 (Priority 1):
Generate a random number > 10000000000 and print the following information
 Priority
 The Random Number generated
 Time-Stamps: Task Entry (Added to queue), Task Start Time, Task Completed.
 Waiting Time in milliseconds
2. Task 2 (Priority 2):
Calculate a random Prime Number which is >100 and print the following information
 Priority
 Prime Number
 Time-Stamps: Task Entry (Added to queue), Task Start Time, Task Completed.
 Waiting Time in milliseconds
3. Task 3 (Priority 3):
Generate a random Fibonacci Number >100 and print the following information,
 Priority
 Fibonacci Number
 Time-Stamps: Task Entry (Added to queue), Task Start Time, Task Completed.
 Waiting Time in milliseconds

 These tasks must be generated at the given rate (Task/Minute), this rate must be configurable.
 The task creation must be evenly spread across 1 minute.
 Once the task is created, it must be sent to the server over an http channel.

Server:
The server must accept the tasks, and execute them based on the following criteria:
1. Higher priority task are to be executed first.
2. When a task is in the queue for more than 3 seconds, the priority must be increased by 1 unit.

Note:
• Priorities: 1 – High, 2-Medium, 3 - Low
• Where ever possible use COM libraries.
• The client and server application can be hosted on same machine or on different machines.
• Every task must take 1 sec to complete .i.e. (The moment the Task was taken for execution and the moment the task execution is completed, must be and 1 sec interval).
 
Old 03-18-2012, 02:13 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
Homework?
See the LQ Rules:
Quote:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.
 
Old 03-18-2012, 06:10 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
In addition this
Quote:
• Where ever possible use COM libraries.
looks like an MS qn to me...?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-threaded rsync ? permalac Linux - Newbie 6 10-27-2010 06:17 PM
[SOLVED] Multi threaded Wine txm123 Linux - Newbie 2 08-14-2010 01:56 PM
apache: running multi-threaded or multi fork? Swakoo Linux - General 1 03-20-2008 07:18 AM
How to debug a multi-threaded program? nalsrayatko Programming 4 11-29-2007 01:57 PM
Multi-Threaded C pragti Programming 1 06-01-2004 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration