Hi,
I've recently started C and i have a quick question
in the code below i increase the variable Balance in two threads, but somehow the final Balance is still equal to the initial value. Why?
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
pthread_mutex_t...
Perhaps then he might get a clue, and start acting on the inputs of the best and the brightest out here on the Internet. Even though we might disagree, we do so intelligently.
Given what he's done so far, I haven't the slightest clue as to what he's acting on.
^^ But I hate doing a cold entrance even more xD
I'm Bee and I'm a third year EE student at some school in Canada. The main reason I'm posting this is just to throw out there that I feel pretty over my head here (haha) but I've been lurking for months and I'm hoping that maybe I'll learn...
I have a friend that needs something done which I can't think of a non-threaded way to do, and we're having some trouble understanding how the pthread library works.
He wants a program to execute until he presses a button. I suggested having one thread with a while loop that runs until a...
Re
www.physicsforums.com/showthread.php?t=403487
Actually, there is a move back to writing multiplication left to right. And while it is not wrong that this purely a matter of convention and symmetric within a narrow context, in a wider context, this notational choice acquires very real...
Hello. May I ask if we have the technology to run a thread-making machine on the end of that 20" pipe in the Gulf leaking oil and then screw a 20" cap on it? Is there even a commercially-available 20" threader? Largest I've seen is 6". Granted the oil pressure would initially prevent...
not sure why my earlier post never showed, but I'll try again.
I'm doing some work to control a pump that's the input to a pneumatic system. I developed a transfer function that defines the plant as the output pressure divided by the input pressure. I also developed a controller: PID&I...
Hi All,
I was browsing the internet and came across this forum, I was thinking to myself one day and decided to do a google search.
My question is basically, how do I determine how much weight a bolt can take before it pulls out of the thread.
For example, I want to attach Part A to Part B with...
a) Three pithballs are suspended from thin threads.Various objects are then rubbed against other
objects (nylon against silk, glass against polyester, etc.) and each of the pithballs is charged by
touching them with one of these objects. It is found that pithballs 1 and 2 attract each other...
hello everyone, this is my first post.
Right now I am trying to figure out which equations to use to solve the following.
I will have a block that will a threaded rod through it. This block will be next to another larger block. In between these blocks are going to be metal samples.
Now...
I am trying to come up with an automated method to exert a force of around 250N downwards onto a plate.
The possibilites that i have looked at so far are Weight (although this has been discounted due to the size of the weight that would be needed), Hydraulic and Pneumatic systems. However...
A uniform stick of length 1 meter and mass 200 gm is suspended from the ceiling through two vertical strings of equal length fixed at the ends. A small object of mass 20 gm is placed on the stick at a distance of 70 cm from the left end. Find the tension in the two strings.
The problem i...
Hello,
please help with this question
What of the following is difficult to manage if there are user-space threads and what
will be easier when there are kernel-level threads?
1)code segment
2)data segment
3)stack
4)registers
I don't understand the logic of that question, I think...
...where people don't post complete thoughts or seem to expect other people to know exactly what's on their minds?
https://www.physicsforums.com/showthread.php?t=279846
https://www.physicsforums.com/showthread.php?t=279814
How is it NOT obvious to them from beforehand that if they post...
Java or C++ - Threads HELP!
I need help with this program. I got five others to do and I won't have time to do it and it's apart of my final exam for next Tuesday, can somebody write this program:
Create 5 threads which share a file and
let "even" threads write to a file, and let "odd" delete...
Java or C++ - Threads HELP!
I need help with this program. I got five others to do and I won't have time to do it and it's apart of my final exam for next Tuesday, so here is my question I need:
Create 5 threads which share a file and
let "even" threads write to a file, and let "odd" delete...
I've noticed that at the bottom of each post it shows similar threads, and the matches are pretty good.
Does anyone know how it goes about doing this? Does it summarize an entire thread? Does it use tags?
Hey, I'm trying to learn a bit about the strength of threads in bolts and have a couple of questions.
Let's say I have a system that looks something like this:
I want to find out if there are enough threads to withstand the force F.
The nut and bolt material are not the same.
I...
I really need to start studying for the physics GRE. Are there any threads here devoted primarily to the physics GRE? Anyone looking for an online study buddy?
In light of the many threads in this forum that discuss the sociolgy of physics, as opposed to the physics itself, I would like to propose that threads of the former type be separated from threads of the latter type, perhaps being moved to a different forum.
PhysicsForums has a very admirable...
Hi Ho!
Is there a better way of looking at more than one threads of execution besides enumerating all of the possible paths so that a person can quickly determine whether there will be a problem or not?
When I face a question of determining whether two threads of execution will have a...
I have a server set up which can accept multiple clients in different threads. Now the server keeps track of all client activities using a log feature which writes directly to a txt file. But soemtimes I notice when there are a lot of clients requesting there is an IOException becuase another...
I'm trying to code a game which can be played in my home server using all the computers there are. I'm trying to set up a server which takes each computer connected and makes a new thread for each to respond to. How do you do that in C#?
Some codes as to how multiple clients can connect to a...
Another one of those "what are my chances?" threads
So I finally got my physics GRE subject scores, and I wanted to throw my stats up and my list of schools and see what everyone thinks. I'm hoping to work in condensed matter and/or AMO, in theory and/or computational physics.
Large US State...
Is there a way to "subscribe" to a thread without actually replying in it? That way you can keep track of threads that you would like to stay updated on, but that you are not necessarily qualified to participate in?
Casey
hey i have a question from my physics tute but I'm lost.
a spider is suspended on lines of web between two level branches. each line of web is 72cm long and the branches they are attached to are 1.1m apart
1) given that the spider weighs 5.2g, calculate the tension force in either of the...
Hi everyone
I am trying to learn how do I correctly draw, with a ruler (where are milimeters visible as much as possible) and pencil, on already given surface screw thread and on another surface (different task) how do I correctly draw, let's say, pair (or it can be just one too - study of...
Hiya :),
1). I understand that threads are like processes except that they share the state information, and memory.
So I would think they share the values of the registers, the memory heap, and the stack, right? would they also share global variables?
2). Also, could a multithread solution...
Every now and then, this forum has the rare and satisfying experience of hosting a well presented homework thread - a thread where the member seeking help has chosen a title well, written out the original question completely, provided sources and diagrams if required, explained their background...
Every now and then, this forum has the rare and satisfying experience of hosting a well presented homework thread - a thread where the member seeking help has chosen a title well, written out the original question completely, provided sources and diagrams if required, explained their background...
Every now and then, this forum has the rare and satisfying experience of hosting a well presented homework thread - a thread where the member seeking help has chosen a title well, written out the original question completely, provided sources and diagrams if required, explained their background...
Every now and then, this forum has the rare and satisfying experience of hosting a well presented homework thread - a thread where the member seeking help has chosen a title well, written out the original question completely, provided sources and diagrams if required, explained their background...
Ok so let's have a focused thread on consciousness, both in general and specific areas..
I will propose some questions, and the known speculations on them, along with my personal opinions.
First off this is a tough area, one where we don't yet have a solution, so this thread might not give...
A thing i have noticed when burning paper on an open fire, the paper has
burnt, and left a carbonized sheet, every so often a red hot thin thread
travels along it, even on a very hot roaring fire the sheet will stay intact for
several minutes, but what are these red hot threads burning.
This is sad.
The Podkletnov effect has produced ZERO independent verification. Even Podkletnov could not reproduce his experiments when invited by NASA. This Boeing project is no longer running after several fruitless years. You are not reporting anything new that hasn't already been...
my "politics and world affairs threads going off-topic" theory.
All threads will degenerate, by order of priority, through several off-topic discussions arguments ending with a Communism vs. Capitalism argument. Any thread that does not fully complete this sequence will be because of locking...
1. Do you check all the GD's thread?
2. Do you read all the replies if you'd want to reply to a thread?
3. What kind of threads do you like?
4. Who's your kind of PF'er?
5. What are the best hours in GD? I mean when GD is so active and your
favorite members are online?
Hey,
I was wandering if anyone knew if the Feynman diagrams could be created in Latex or in threads like this?
If not then maybe it would be an interesting development avenue...
What's your favorite thread? I found this one to be a good candidate
https://www.physicsforums.com/showthread.php?t=68575&highlight=horror
:-p
The only reason I posted this is because I'm really bored... :rolleyes:
So, ya... this place is a popular hang out these days eh?
So, what's new with everyone? hows the family? ya, cool... I actually use this place for help now, which is cool. its a lot easier to do now since there is so many people. i asked for when i first joined and no one would answer for...
hi there
I am new here. Could some one tell me how to insert Latex formulas into the threads?
About spin matrices:
we get imanary no. in these matrices.
Let's say we have S= n1.sx + n2.sy +n3.sz showing us the magnitude in each component (sx, sy, sz are the spin matrices/vectors). What...
I'm new to this forum and I wonder when and why some threads are closed and who is doing it? Why was for instance the thread "Answer to Ivan 2" closed? Does it have to do with what you are allowed to write and not!
Hello, I don't see any specific forum about chaos, self-organised complexity, emergence etc
Are there any particular reasons why?
How is currently the status / reputation of these fields among scientists?
Time ago I read that they couldn't yet deploy any actual theorems in the mathematical...
Or should 'wacko' be spelled 'Waco'? (As in Texas, LOL.) Anyway, I haven't read most of the threads here, but there seems to be a striking lack of those types of threads, judging by the titles. Is it because they are all out in the boonies of Texas readying themselves for when the gov't comes...
One thing that seems to happen when a person starts a thread asking a question, looking for insight, is that the more vaguely or poorly phrased the question, the more attractive it seems to be to potential respondants. I find that interesting.
I'm wondering if anyone else finds this to be true...