LinuxQuestions.org
Register a domain and help support LQ
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, 02:21 PM   #1
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 56
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, 03:13 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

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, 07:10 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:17 PM
[SOLVED] Multi threaded Wine txm123 Linux - Newbie 2 08-14-2010 02:56 PM
apache: running multi-threaded or multi fork? Swakoo Linux - General 1 03-20-2008 08:18 AM
How to debug a multi-threaded program? nalsrayatko Programming 4 11-29-2007 02:57 PM
Multi-Threaded C pragti Programming 1 06-01-2004 11:50 AM


All times are GMT -5. The time now is 02:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration