473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

writing multithread applications in dotnet 2.0?

hi..

we are planning to do a file distibution system in dotnet 2.0 (the
system will recieve request for file transfers from one legacy system
to another using connect direct api, the execution of the file transfer
itself will be multi-threaded.

are there any differences between 1.1 and 2.0 in regards to 2.0?

we were thinking about placing the thing in a windows service, are
there any do's and don'ts in windows service i'll need to know about
(database access, multi-threads etc..)?

Mar 3 '06 #1
4 1709
Hello, Elhanan!

E> we are planning to do a file distibution system in dotnet 2.0 (the
E> system will recieve request for file transfers from one legacy system
E> to another using connect direct api, the execution of the file transfer
E> itself will be multi-threaded.

E> are there any differences between 1.1 and 2.0 in regards to 2.0?
In what aspect of 2.0 you're interested? 1.1 and 2.0 have a lot of differences...

E> we were thinking about placing the thing in a windows service, are
E> there any do's and don'ts in windows service i'll need to know about
E> (database access, multi-threads etc..)?

It depends what you want to do, from with windows service. Regarding,
"(database access, multi-threads etc..)" there no limitations.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Mar 3 '06 #2
Hello Elhanan,

E> we are planning to do a file distibution system in dotnet 2.0 (the
E> system will recieve request for file transfers from one legacy system
E> to another using connect direct api, the execution of the file
E> transfer itself will be multi-threaded.
E> are there any differences between 1.1 and 2.0 in regards to 2.0?

take 2.0, cuz it has more extended functionality then 1.1

E> we were thinking about placing the thing in a windows service, are
E> there any do's and don'ts in windows service i'll need to know about
E> (database access, multi-threads etc..)?

take into account that services works in separate context, they starts before
user login (no ui interactions) and system account uder
service starts might have no access to the network
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 3 '06 #3
i'm interested in aspects of multithreading functions, are there any
improvments. (java threading seems easier..)

can i actually use update delete databases from within a windows
service? i've heard that all services leave under the same memory
context any taxing one with intensive work might create a problem for
all.

Mar 4 '06 #4
Elhanan <em*****@hotmail.com> wrote:
i'm interested in aspects of multithreading functions, are there any
improvments. (java threading seems easier..)
In what way is Java threading easier? .NET threading is pretty much the
same as Java threading in many respects, except that to my mind
delegates make .NET somewhat easier. Java 5 provides more utilities for
threading, but the basics are pretty much the same.
can i actually use update delete databases from within a windows
service?
Absolutely.
i've heard that all services leave under the same memory
context any taxing one with intensive work might create a problem for
all.


No, services each run under their own process. Of course, any CPU time
you use in one service isn't available to the others - but that's true
of any process.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Mar 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alice | last post by:
Hello I have four multithread windows applications(vb.net) interacting and running on the same machine(windows 2000 with .net framework 1.0). All of them start a new thread each time Filewatcher's...
0
by: r_obert | last post by:
Hello, I'm trying to create a worker thread for my VC++ program, and was wondering whether I should be linking with the Multithread /MT or Multithread DLL /MD option? I'm not quite sure, in...
4
by: zbcong | last post by:
Hello: I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting for a...
2
by: zhebincong | last post by:
Hello: I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting...
2
by: N.Naeem | last post by:
I have a a program in vb6 which looks for a file in a folder structure including subfolders, the folders could be more than 100 folders. Once a particular file is found i start another instance of...
5
by: juky | last post by:
Hi all, I have 3 running threads chencking for something in my application. Based on that I need to stop some of them safely wait for something else and restart. Sleep is not good in my case...
4
by: Gary Bond | last post by:
Hi All, Can anybody point me to some 'how-to' documentation, tutorials, etc as to how to write a shrink/protect wrapper for .Net exes/dlls, (like the Shrinkwrap product for instance). I have...
2
by: tikcireviva | last post by:
Hi Guys, I've done a mulithread queue implementation on stl<queue>, my developement environment is on VC6 as well as FC3. Let's talks about the win32 side. The suspected memory leak is find...
7
by: AAAAA | last post by:
Hi friends, So that you would use multithread in an application WEB? Thanks Cesar
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.