GCHandle in C#

pinned:

http://dotnet.dzone.com/news/net-memory-control-use-gchandl

weak referenced:

http://www.shafqatahmed.com/2008/01/weakreference-b.html

Advertisements

how unzip tar.bz2 in linux

Open a terminal and type:
tar xvjf filename.tar.bz2
Which will untar it to the current directory. Normally (99% of the time) it will create it’s own subdirectory so you don’t need to worry about that.
Just so you know:
tar – Tape ARchiver
And the options:

  • x – extract
  • v – verbose output (lists all files as they are extracted)
  • j – deal with bzipped file
  • f – read from a file, rather than a tape device

“tar –help” will give you more options and info

Socket Programming C#

There is some situation that you have to work extremely real time with your network system so it is necessary to sleep some threads until they have job to do!  in this situation you need to work with

  • AsyncCallback
  • ManualResetEvent

there are good references to do that

Ref: