Find Jobs
Hire Freelancers

Debug small C Program

$30-250 USD

処理中
投稿日: 11年近く前

$30-250 USD

完了時にお支払い
1. First compile and execute the distributed program. Note that it deadlocks. In order to make running it less frustrating, I made it terminate with the message ``No runnable threads." 2. Modify the program by changing the order of calls to use two-phase locking and produce a version of the program with modified threads, which doesn't deadlock. Note that it never terminates, because each thread sits in a rather pointless infinite loop. 3. Now go back and solve the deadlock problem by modifying the resource management package, instead of the thread code: Check for deadlock when a thread waits for a semaphore, and if granting it would cause deadlock, make the thread wait until things are safe. (In order to check, you'll need to define some new data structures, and perhaps insert some additional code into each thread to manage them.)
プロジェクト ID: 4534402

プロジェクトについて

13個の提案
リモートプロジェクト
アクティブ 11年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です

クライアントについて

UNITED STATESのフラグ
Denville, United States
5.0
4
メンバー登録日:4月 17, 2013

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。