|
In java it is possible to get a snapshot of the stacktraces of all running threads. This is done with java.lang.Thread.getAllStackTraces() (it returns Map<Thread,StackTraceElement[]>).
How can the same thing be done with .net?
Started by Daniel Sperry on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Try this one
var proc = System.Diagnostics.Process.GetCurrentProcess(); var....
On System.Diagnostics.Process.GetCurrentProcess().Threads and for each Thread create a StackTrace object with the .ctor that takes a Thread as its param.
|
|
I've just started programming with POSIX threads on dual-core x86_64 Linux system. It seems that 256 threads is about the optimum for performance with the way I've done it. I'm wondering how this could be? And if it could mean that my approach is wrong...
Started by James Morris on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If your threads block on a syscall....
In the meantime, another thread can often do work.
Anytime one thread makes a blocking syscall to the operating system, the thread will stop running and wait for the result.
All the time.
|
|
Time and time again I find myself having to write thread-safe versions of BindingList and ObservableCollection because, when bound to UI, these controls cannot be changed from multiple threads. What I'm trying to understand is why this is the case - is...
Started by Dmitri Nesteruk on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Sure it's simple enough to design]; }
Assume that myCollection is a thread safe collection where adds and updates are guaranteed to myCollection: namedly Count and the indexer....
The problem is designing a thread safe collection is not simple.
|
Ask your Facebook Friends
|
I'm writing a script that will ping my ip range. Here's what I have so far:
lines = `ipconfig`.split("\n") thr = [] ip_line = lines.detect { |l| l=~/Ip Address/i } matcher = /\d+\.\d+\.\d+\.\d+/.match(ip_line) if matcher.length > 0 address = matcher...
Started by Geo on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use IO.popen like this
thr.
That's probably why the code is slow.
To operating system, Ruby Interpreter is still just one process(just like any after the 'ping' finishes.
By Ruby Interpreter.
|
|
Would it not be nice to be able to start a thread like this.
Sub DoStuff() Using MyThead = New Threading.Thread() 'Do stuff on MyThread. End Using End Sub
It is much less code to write and looks nicer than:
Sub DoStuff() Dim MyThread As New Threading....
Started by diamandiev on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This is already possible (with a bit more noise....
A thread would be created that contained the code down to the End Using and begin execution in parallel?
No, I don't like that at all, it's much, much less clear what's.
So in your example ...
|
|
Hello,
I am a Java programmer and I know a few things about threading int Java.
In Java I can lock a method by using synchronized keyword:
private int a; private int b; private int c; private synchronized void changeVars() { a = 4; b = 2; c = a+b; }
I...
Started by JCasso on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Private int a; private int.
Something like this mayhaps:
using System.Runtime.CompilerServices; ...
|
It seems like whenever there's a thread that mentions Likes in the title, it turns into a Like orgy.
I'm making this thread to test this phenomenon-- for science of course.
Started by Ignorant_Munky on
, 49 posts
by 21 people.
Answer Snippets (Read the full thread at ign):
*misses my post....
The like theory ok srsly
@Indalecio666
@holyjesusjuice I was supposed to watch Game of Thrones like 30 minutes ago, but can't stop , once though.
@TheDevil21 Ya okay.
No way this works hmmm I like being a guinea pig.
|
|
Post smilies in this thread that you don't like when people use them. Originally Posted by bansky
Started by Nerd on
, 11 posts
by 6 people.
Answer Snippets (Read the full thread at dawgsaloon):
Oh shit, I'm laughing like a hyena.
Originally Posted by FranciscoTheMan I just thought I'd start a thread about the most hetero guy here Bone---> <---Gumz Originally Posted by Nerd Damn you, naz.
|
|
Anonymous Coward
3/7/2012
10:18 am
Elaine, delete that fucking thread like i told you to
You either erase the thread that has my name and employer or D. and I are going to pin a thread on our board with that freak curmy's police record. Got his mug shot...
Started by Anonymous Genius on
, 20 posts
by 5 people.
Answer Snippets (Read the full thread at acidpulse):
Normally I would have removed it after a while, but that thread will be there....
Then I locked the thread.
That fucking thread like i told you to
police record for curmy? who knew?
As for that thread, I removed requested.
|
|
The Concert Thread So ya, thought ya, might like to, go to the show... Thought it might be fun to have a thread for shows that you've seen or will be seeing.
What is (are) the best show(s) that you saw? First show? Most unique or unusual? What's the ...
Started by Gurtholfin on
, 20 posts
by 11 people.
Answer Snippets (Read the full thread at uscho):
My: The Concert Thread....
I was 11%: Offseason Starting Point Re: The Concert Thread So ya, thought ya, might like to, go to the show...
KISS in 1979.
Re: The Concert Thread So ya, thought ya, might like to, go to the show...
|