-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What are the advantages/disadvantages in placing a lengthy network access code in a thread in an activity or a thread in a service? How would it affect the application? I am writing a streaming audio player and from what I've read so far putting the code in a service will still end up blocking the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I have an ASP.Net webservice running.
When the system date changes, i want to close all the threads and restart them again, if the thread/s aren't doing any work. If any of the thread/s is in the process of doing some work(active threads), then i need to wait till the current thread/s complete…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, this is for an assignment so I'm not looking for code.
I have to simulate a game where each player has turns and needs to 'pay attention' to what's going on.
So far, i know I'll need two threads for each player, one that will sleep until the player's turn and the other paying attention.
My…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When using java threads, one has to take care of the basic problems that come with concurrency through synchronization etc.
AFAIK Tomcat also works with threads to handle its workload. Why is it, that I don't have to think about making my code threadsafe when it is running in Tomcat?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
I am working on a project which involves reusing as well as migrating some of the existing MFC code to C#.
The current code in MFC, creates some threads and uses ::PostthreadeMessage() and ON_THREAD_MESSAGE(msg,func) for inter thread asynchronous communication through messages.
::PostthreadeMessage()…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I know there are a lot of posts about nvdia driver, but I am not able to solve this.
I updated my configuration yesterday, September 27th, and it seems that a new nvidia driver was involved. The updated completed with an error, and invited me to send a bug report automatically. I send it, but it…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
So I turned on my computer and log into my gnome-shell session to find that the shell is gone, and there is instead a very thick panel with a vertically repeated pattern of the gradient the Unity panel displays. I ran some tests and found out that my graphic acceleration was failing. I have attached…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I've been trying to get HDMI with sound working for the last few days, and I'm a little bit out of ideas. (I've verified that the hardware/Setup works via Windows.)
aplay does not list my HDMI device:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I see that there are two packages nvidia-current and nvidia-current-updates. The apparently stem from nvidia-graphics-drivers and nvidia-graphics-drivers-updates respectively:
https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers
https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-updates
I…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I've seen this problem reported under several questions, but I haven't been able to resolve any of it so I thought I'd bring it all in under one umbrella.
I started a new job and was given a Dell Precision M6400 laptop with Nvidia Quadro FX 2700M graphics card. It had a previous version of Ubuntu…
>>> More