Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to read a small (1kb) file and a big (10gb) file together asynchronously without locking the main thread. I should do it with a console application and Rx extension not with system.threading and other methods because my manager asked so! . Could anybody give me some help plzzzz? tanx in advance...
Posted

1 solution

Please don't tell us "because my manager asked so". We help software developers only, not people who don't know why using this or another APIs. May be your manager is the real software developer, but certainly not you. Talk to your manager to resolve this problem. If your manager consider herself/himself a software developer, let her/him ask a question here at CodeProject, this time explaining the requirements with proper rational.

Please don't ask such questions because this is not really your question. First, become a software developer who can take enough responsibility for your work and at least able to explain the rational behind all the requirements. How to become such person? There are different ways. You can start with asking you manager; may be she/he knows the recipe. :-)

—SA
 
Share this answer
 
v3
Comments
Arash_73888 22-Jul-11 7:44am    
thanks for your attention dear friend but let me describe the situation little more. Cause i am new in VS2010 and I want to be in .Net team in our company , I should do some sample and one of them is this.I am searching forums and articles but I have not found anything useful for this problem. So please if you know this library give me some useful advice instead of talking angrily. I have searched hundred times!
And as you know and regarding my searches , Rx extension is a great powerful extension and decrease coding so much,So i dont think there is any problem to say "my manager asked so"!

and at last I should give some more description about the question:

I want to read some files together but want to use some background worker threads.Also I dont want my main thread becomes unavailable and freezes the screen because one of operations may take so long time but another may just take one second. Rx produces this with just some lines of code like these :

Observable.FromAsyncPattern

This function takes a begin and end arguments and I can not work with them!

or maybe there are some other methods I dont know yet!!!
(excuse my bad english plz!!)

THANKS

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900