Forums: Open Discussion (Thread #21897)

【Client for .NET】同時処理について (2009-03-03 23:51 by Anonymous #42290)

クライアントからボタンをクリックして、サーバのビジネスロジックを呼びます。
ボタンAをクリックすると時間のかかるビジネスロジックA、
ボタンBをクリックすると時間のかからないビジネスロジックBを処理します。
ビジネスロジックAの処理中にボタンBをクリックしても、
ビジネスロジックBはAと同時処理行われないようです。
何かconfigファイルなどに設定が必要なのでしょうか?
よろしくお願いいたします。

環境:
サーバ、クライアント共にOSはVista SP1、.netFrameWork2.0、TerasolunaFrameWork2.1.0.1
WebサーバはIIS5.1

Reply to #42290×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 【Client for .NET】同時処理について (2009-03-04 09:24 by sejimos #42293)

最初に確認させていただきたいのですが、
ビジネスロジックAは以下のコードのように
非同期処理で実行しているという理解で
合っていますでしょうか?

// ボタンAのクリックイベント
private void buttonA_Click(object sender, EventArgs e)
{
eventControllerA.ExecuteAsync();
}

【合っている場合】
非同期処理は、EventControllerのExcecuteAsyncメソッドを
呼び出すだけで実現できます。
設定ファイルの記述内容は同期処理の場合と同様であり、
特別な設定は必要ありません。

【合っていない場合】
どのようにビジネスロジックA,Bを呼び出しているか、
教えていただけますでしょうか?
Reply to #42290

Reply to #42293×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 【Client for .NET】同時処理について (2009-03-04 18:07 by Anonymous #42310)

返信ありがとうございます。
ビジネスロジックA,Bともに非同期処理で行っています。

一つ訂正ですが、サーバの環境を間違っておりました。
OS:XP Pro SP2 IIS:5.1でした。これをサーバAとします。

ロジック的に間違いはないようなので、サーバの環境を増やして検証してみました。
そのときのサーバは、OS:Server 2003 SP2 IIS:6.0です。これをサーバBとします。

結果は、サーバBでは同時処理が行われ、サーバAでは同時処理が行われませんでした。
ただ、サーバAはpen3(600M)256Mで、サーバBはcel(2G)1Gなので
マシンスペックに依存するのかな?と思います。
Reply to #42293

Reply to #42310×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 【Client for .NET】同時処理について (2009-07-12 23:56 by Anonymous #44928)

スペックではなく、OSの問題でした。
Reply to #42310

Reply to #44928×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login