How Software Gets Done  


(No Login on Secured Page)

Custom Software Buyers
Request new bids
Search Coders
My Account
 
My Buyer 'To Do' List
 
My bid requests
  My escrow account
 
My General Info
 
Help for Buyers
Articles for Buyers
Latest News
 

Custom Software Coders

Newest open work
Browse all work
Search all work
My Account
 
My Coder 'To Do' List
 
My bids
 
My General Info
  My credit account
 
Help for Coders
Articles for Coders
Latest News
 

Affiliates

My account
 
My pipeline
 
My credit account
 
Help for Affiliates
Latest News
 
Newest Open Bid Requests.
Report Template - From Excel, Crystal Reports...
By Claypots on Jan 20
Max Bid: Open to fair suggestions


Collection Tracker for Minatures Game
By Ryetsu on Jan 20
Max Bid: Open to fair suggestions


Project Management
By groovy_alexia on Jan 20
Max Bid: $110


Web Marketing
By blong24 on Jan 20
Max Bid: $500


DVD COPIER CLONE
By xswiss on Jan 20
Max Bid: $4,000


Commercial Management 1
By groovy_alexia on Jan 20
Max Bid: $100


Click here to put this ticker on your own site

Open Work Categories.
Database 
(137 open)
   Access 
(48 open)
   MySQL 
(75 open)
   Oracle 
(8 open)
   SQL Server 
(56 open)
   Other DB 
(19 open)
Documentation / Tech Writing 
(23 open)
Game Development 
(21 open)
Graphics / Art / Music 
(50 open)
   Graphics 
(59 open)
     3d Animation 
(13 open)
   Art (Misc.) 
(20 open)
   Music 
(6 open)
   3d Modeling 
(12 open)
Language Specific 
(90 open)
   ASP 
(70 open)
   C# 
(34 open)
   C++ / C 
(103 open)
   Cold Fusion 
(4 open)
   Delphi 
(34 open)
   Java 
(48 open)
   Perl 
(28 open)
   PHP 
(81 open)
   XML/XSL 
(31 open)
   Visual Basic 
(164 open)
   Visual Basic .Net 
(61 open)
   Other 
(45 open)
Misc 
(36 open)
   CAD 
(8 open)
MultiMedia 
(25 open)
Network 
(32 open)
   Network Design 
(13 open)
   Network Implementation 
(13 open)
Platforms 
(60 open)
   Windows 
(133 open)
     MS Exchange 
(4 open)
     MS Office 
(2 open)
     Other 
(8 open)
   Internet Browser 
(50 open)
   Linux 
(41 open)
   UNIX 
(21 open)
   Hand Held/PDA Programming 
(15 open)
Requirements 
(10 open)
Security 
(24 open)
Testing / Quality Assurance 
(11 open)
Web 
(131 open)
   Page Design 
(65 open)
   Flash 
(32 open)
   Web Services 
(57 open)
   Web (Other) 
(56 open)
Training 
(5 open)
   Computer Based 
(5 open)
 
Other
 
Other Sites

Download the free Rent A Coder IE toolbar!
 
Show Bid Request

C Program on UNIX
Bid Request Id: 7711
Bookmark in my 'To Do' list
Posted by: shotglass (9 ratings)
(Software buyer rating 10)
Posted: Jan 18, 2002
2:26:16 PM EDT
Bidding Closes: Jan 22, 2002
12:27:19 AM EDT
Viewed (by coders): 242 times
Phase:
100% of work was accepted by buyer. Coder account has been credited.
Max Accepted Bid: Bidding is closed
Project Type: Personal Project / Homework Help
Bidding Type: Open Auction
Categories: C++ / C, UNIX
Enter chat room for this bid request
(0 active users at Jan 20, 2003 4:17:04 PM EDT)

Description:
Ethernet Switch
Program in ANSI C on UNIX,Use of semaphores & threads

Create program that simulates single switch with numClients machines sending messages through it.
Switch will be modeled by main thread. Will be several parameters:

1.numClients-number of ports. Assume that each port is connected to single machine (client). Thread will be created for each
client.
2.rngSeed-seed for random number generator
3.maxCount-number of times each client will attempt to send essage
4.sendProbability-probability ( × 10000) that client will send message on each attempt

Will be data structure shared among all threads. an array, one for each
client, of port s described below.

message::
source // sender's address
destination // destination address
data // an integer value

port::
message // described above
empty // binary semaphore (initially 1)
mutex // binary semaphore (initially 1)
maddr // address of connected machine

Entry port[i].message represents packet input on port[i] of switch. Ports are numbered 0 through numClients
- 1 . Entry port[i].maddr is the information thats maintained in forwarding table. You wont need to keep seperate
forwarding table. The field maddr with index is sufficient. You will need to update this field accordingly, its initially set to
NULL .

Output of simulation will be list of messages forwarded by switch. For each forwarded message a line will be printed
indicating output port , source machine address , destination machine address , and data First message arrived on port 1:

0 1234567 9876 10125
2 1234567 9876 10125
3 1234567 9876 10125
1 74855 1234567 77449201

Switch thread will implement following pseudocode.

srand( rngSeed )
InitClient( numClients ) // supplied function
Create array of ports
Initialize array of ports
Initialize sendingClients to numClients
for i = 0 to numClients - 1
Start new thread for client attached to port i
while sendingClients > 0
for i = 0 to numClients - 1
if message on port i // new entry in port[i]
update forwarding table if new information
search forwarding table for output port
if port found
send message out port
else
send message out all ports except i

Check out attached to continue

Deliverables:
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.


Special Conditions / Other:
Program MUST be completed by Monday January 28th at 12:00pm Central Time

Additional Attached Files


Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation, you can report it to: abuse@rentacoder.com.
 
Bidding/Comments:
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
 
Date   Coder Rating  
This bid was accepted by the buyer!
Nedani
(49 ratings)
in Braila, Braila
Romania
 
$25 (USD) Jan 18, 2002
5:48:54 PM EDT
 9.82
(Excellent)
   
Accept my bid and you will have your program in 48 hours.

Regards.
Daniel.
 




Quick Search
 

 Advanced Search
Newest Open Work
Latest News

 
Credentials


 

 
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
 

Rent A Coder Top Coders.


Anuj Gakhar
Rated a 9.98 on 75 jobs 
Michael Sharp
Rated a 9.97 on 147 jobs 
Simon Price
Rated a 10 on 6 jobs 
RNA
Rated a 9.9 on 26 jobs 
Securenext
Rated a 9.97 on 51 jobs 
Andrei Remenchuk
Rated a 10 on 9 jobs 
teleCODERS
Rated a 9.93 on 59 jobs 
Buddies
Rated a 9.8 on 48 jobs 
Codman
Rated a 9.96 on 97 jobs 
ashben
Rated a 9.65 on 35 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
 
Other
Rent A Coder is PayPal verified through it's parent company, Exhedra Solutions, Inc.

Created in partnership with:

 


Affiliate Sites



Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.