Cambridge Chat (previously New Cambridge Students Entry 2004)

Watch
This discussion is closed.
Ellie4
Badges: 2
Rep:
?
#15381
Report 15 years ago
#15381
Has this thread just turned into you talking to yourself? :p:
I know I shouldn't be in here really, but I like to have a read every now and again, just to see what the Cam peeps are up to
Less of the compsci talk would be nice though!
0
Camford
Badges: 12
Rep:
?
#15382
Report 15 years ago
#15382
(Original post by Ellie4)
Has this thread just turned into you talking to yourself? :p:
I know I shouldn't be in here really, but I like to have a read every now and again, just to see what the Cam peeps are up to
Less of the compsci talk would be nice though!
It appears to be me talking to me about me at the moment. I need to lock my computer up so I can concentrate on my work.
0
Willa
Badges: 9
Rep:
?
#15383
Report 15 years ago
#15383
well i'm still waiting for someone to answer my last compsci question

but on a less computer related cambridge bit of news...i just had a really crap outing in a 4. Grrr it's so frustrating when the boats so unstable. I'm not in a good mood!
0
Alaric
Badges: 1
Rep:
?
#15384
Report 15 years ago
#15384
(Original post by Willa)
well i'm still waiting for someone to answer my last compsci question
Are you just wanting to show when it preempts, or does each Thread have to do something useful AND detect?

A.
0
Willa
Badges: 9
Rep:
?
#15385
Report 15 years ago
#15385
well if you must know, the two threads are simultaneously trying to read from the same file. I want to signal when control of the output switches from one thread to the other, how can I do this? It's obvious in the output cos the output text has sudden breaks where it jumps back to some previous part, but I want a formal way of signalling the change!
0
Alaric
Badges: 1
Rep:
?
#15386
Report 15 years ago
#15386
(Original post by Willa)
well if you must know, the two threads are simultaneously trying to read from the same file. I want to signal when control of the output switches from one thread to the other, how can I do this? It's obvious in the output cos the output text has sudden breaks where it jumps back to some previous part, but I want a formal way of signalling the change!
Signalling to who/what?

There is Thread.currentThread() (I think it's that) which returns the currently executing thread (ie whichever thread you are executing the call from), so in the two executing threads you can check that against a stored value of the last known executing thread and if it's equal to you you haven't just been scheduled, otherwise if it's different you have and can 'signal' it. The problem is that afaik the JVM makes no guarantees (in fact would be stupid to) preempt between statements, so it may finish executing a command even if you've put these checks inbetween every statement of code. I don't see how you get around that bit, note this also doesn't scale for processors > 1 and is ugly.

A.
0
Willa
Badges: 9
Rep:
?
#15387
Report 15 years ago
#15387
well i wanted it to signal with just a System.out.println. And I've got two instances of the thread class running, is that the correct way to do threads? Or can you run multiple threads by creating only one instance of the thread extended class?

urgh, either way i'm going to bed! Erging tomorrow = yawn!
0
Ticki
Badges: 1
Rep:
?
#15388
Report 15 years ago
#15388
As you know, the General Election is today (Thursday, 5 May). CUSU has been running a campaign to "get the vote out".

1) ALL students are registered to vote - you do NOT need a polling card, just bring some ID.

2) Students with a postal vote are still entitled to vote in Cambridge so
long as they have not yet used the postal vote. It is perfectly legal to be
registered in two places, but not to use a vote in both places for the
Parliamentary election.

3) Local elections are being held tomorrow too - students (including EU
students) may vote in these elections both here AND at home.

4) Look out for organised walks to the polling stations. Meeting after meal times would be ideal.
0
Camford
Badges: 12
Rep:
?
#15389
Report 15 years ago
#15389
Can't be bothered.
0
visesh
Badges: 17
Rep:
?
#15390
Report 15 years ago
#15390
How about just can't? :p:
0
Camford
Badges: 12
Rep:
?
#15391
Report 15 years ago
#15391
(Original post by visesh)
How about just can't? :p:
I can if I want to. By doing something dramatic. Something like hold Michael Howard hostage and say "If you don't let me vote, your next prime minister is going to be Tony Blair for sure!"
0
Camford
Badges: 12
Rep:
?
#15392
Report 15 years ago
#15392
How does this buying college wine thing work? Can I just work into a college bar and say, "can I have a bottle of the college wine?"
0
crana9
Badges: 2
Rep:
?
#15393
Report 15 years ago
#15393
(Original post by Ticki)
4) Look out for organised walks to the polling stations. Meeting after meal times would be ideal.
Huh?

Aren't we meant to be intelligent enough to find the Guildehall on our own? it's hardly out of the way..
0
Camford
Badges: 12
Rep:
?
#15394
Report 15 years ago
#15394
(Original post by crana9)
Huh?

Aren't we meant to be intelligent enough to find the Guildehall on our own? it's hardly out of the way..
Not for people from Girton. Phenyl Girton!!
0
crana9
Badges: 2
Rep:
?
#15395
Report 15 years ago
#15395
if i was at girton i would have postal votes, no queston
0
visesh
Badges: 17
Rep:
?
#15396
Report 15 years ago
#15396
(Original post by crana9)
if i was at girton i would have postal votes, no queston
Are they in another constituency?
0
crana9
Badges: 2
Rep:
?
#15397
Report 15 years ago
#15397
country?
0
Alaric
Badges: 1
Rep:
?
#15398
Report 15 years ago
#15398
(Original post by crana9)
Huh?

Aren't we meant to be intelligent enough to find the Guildehall on our own? it's hardly out of the way..
My Polling station isn't the guildhall, nevertheless, despite it being in locally held territory, I might be able to find it and capture it.

A.
0
crana9
Badges: 2
Rep:
?
#15399
Report 15 years ago
#15399
i respectfully suggest that any student incapable of finding their polling station should not be allowed to vote
0
visesh
Badges: 17
Rep:
?
#15400
Report 15 years ago
#15400
(Original post by crana9)
i respectfully suggest that any student incapable of finding their polling station should not be allowed to vote
Mine is about 200 yards away, but I'll struggle to find it. It is actually ON my street:|
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

How are you feeling ahead of results day?

Very Confident (22)
8.8%
Confident (30)
12%
Indifferent (42)
16.8%
Unsure (67)
26.8%
Worried (89)
35.6%

Watched Threads

View All