block « thread « C Q&A

Home
C Q&A
1.assembly
2.buffer
3.Card
4.Cast
5.compile
6.console
7.const
8.constructor
9.database
10.Date
11.Debug
12.Design
13.Development
14.DLL
15.encrypt
16.enum
17.eof
18.Event
19.fork
20.Format
21.gcc
22.gdb
23.graph
24.graphics
25.gui
26.Holiday Event
27.image
28.IP
29.iterator
30.macro
31.makefile
32.malloc
33.Menu
34.mysql
35.network
36.openssl
37.operator
38.password
39.pipe
40.preprocessor
41.printf
42.pthread
43.Regular expression
44.scanf
45.semaphore
46.SerialPort
47.server
48.Socket
49.sql
50.SQLserver
51.sscanf
52.std
53.stdin
54.stdout
55.stl
56.strcmp
57.stream
58.switch
59.Template
60.thread
61.timer
62.unix
63.video
64.Virtual
65.visualstudio
66.winapi
67.windows
68.xml
C Q&A » thread » block 

1. What happens to other thread when one thread get blocked?    stackoverflow.com

In Linux, if two threads are created and both of them are running, when one of them calls recv() or any IO syscall that blocks when no data is available, what ...

2. Block and wake up certain threads    cboard.cprogramming.com

This is my next challenge. I have several threads waiting there. Another thread is polling a database and when it finds something, it puts something in a datastructure that is owned by a thread (every thread owns one of those structures). Currently all those threads do a constant loop with a usleep of 200 ms. Without a sleep this would take ...

3. Thread requesting that main() terminate but main() blocks    forums.devshed.com

My main() function spawns a thread. main then goes into a recv() loop. What I want is that at a certain time the thread has to terminate, but I want main() to know about this immediately. How can I? My problem is that main() blocks due to recv() so I can't just poll GetThreadExitCode(). I can't poll anything. I also don't ...

4. Reply to thread - Problem with blocking sockets by Loser    forums.devshed.com

ehh i've been trying to post my reply to that thread repeatedly but the damn server refuses to process it. so uhh here it is... im not sure i fully understand your question or what is going in the first example. in tcp, it make no difference how many send calls are made. in fact, a client has no idea whether ...

5. thread blocks upon calling a stored procedure and never come back.    codeproject.com

You are using one connection/session per thread? Based on your "problem" description, I suspect that you have concurrency issues. Personally I prefer using Oracle C++ Call Interface[^] For more info on OCI (used by OTL) see http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28395/toc.htm[^] >>One of the working threads block >>upon invoking a stored procedure and never come back. >>This ...

6. [CUDA]Determining threads per block, no. of blocks and Grid Size    codeproject.com

It depends on the data set that you want to process and the number of the threads that you want to assign to each block. In your example you are only processing 20 elements (2 * 10). You are supposed to have about 256 threads per block for max performance. In this case 256 threads is 246 more threads ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.