-
Notifications
You must be signed in to change notification settings - Fork 0
/
000191.html
226 lines (157 loc) · 10.7 KB
/
000191.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Martin Woodward: Deadlock</title>
<link rel="stylesheet" href="http://www.woodwardweb.com/styles-site.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/MartinWoodward" />
<link rel="start" href="http://www.woodwardweb.com/" title="Martin Woodward" />
<link rel="prev" href="http://www.woodwardweb.com/vsts/000190.html" title="TFS Source Control for VS 2003" />
<script type="text/javascript" src="http://www.woodwardweb.com/mt-site.js"></script>
<!--
<rdf:RDF xmlns="http://web.resource.org/cc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Work rdf:about="http://www.woodwardweb.com/000191.html">
<dc:title>Deadlock</dc:title>
<dc:description><![CDATA[I’ve been coding for over 25 years, since my parents bought me a VIC-20. It was a sizable investment in new technology for them at the time, but one that has helped me to earn my living for over 10 years...]]></dc:description>
<dc:creator>Martin</dc:creator>
<dc:date>2006-02-24T12:21:14+00:00</dc:date>
<license rdf:resource="http://creativecommons.org/licenses/by/1.0/" />
</Work>
<License rdf:about="http://creativecommons.org/licenses/by/1.0/">
<requires rdf:resource="http://web.resource.org/cc/Attribution" />
<requires rdf:resource="http://web.resource.org/cc/Notice" />
<permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<permits rdf:resource="http://web.resource.org/cc/Distribution" />
<permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
</License>
</rdf:RDF>
-->
<!-- Google tracker -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-71966-1";
urchinTracker();
</script>
</head>
<body>
<div id="banner">
<H1><SPAN CLASS="textVersion">Martin Woodward</SPAN></H1>
</div>
<div id="content">
<div class="blog">
<div id="menu">
<a href="http://www.woodwardweb.com/vsts/000190.html">« TFS Source Control for VS 2003</a> |
<a href="http://www.woodwardweb.com/">Martin Woodward</a>
</div>
</div>
<div class="blog">
<h2 class="date">February 24, 2006</h2>
<div class="blogbody">
<h3 class="title">Deadlock</h3>
<p>I’ve been coding for over 25 years, since my parents bought me a <a href="http://en.wikipedia.org/wiki/Commodore_VIC-20">VIC-20</a>. It was a sizable investment in new technology for them at the time, but one that has helped me to earn my living for over 10 years now. In that time I’ve been written many multi-threaded applications and considered myself reasonably “thread-savvy”. Most of the stuff has been web based applications but I’ve done my fair share of client side work before and I’m currently <a href="http://www.teamprise.com/">doing a lot of it</a>.</p>
<p>This morning I encountered a <a href="http://en.wikipedia.org/wiki/Deadlock">Deadlock</a>ing problem for the very first time outside of a question in a technical interview, in fact if it had not been preparing for technical interviews then I may never have even come across the term before. As I did my degree in <a href="http://www.dur.ac.uk/physics/">Physics</a> and not Computer Science, I’ve always had a bit of a weak spot around my use of formal computing terms – sadly my knowledge of Physics isn’t much better as I spent most of my time in the <a href="http://www.dur.ac.uk/StChads/buildings.html">college bar and the JCR</a>. The reason I’ve probably only come across a real deadlock now is that most of my professional life has been spent inside J2EE application servers or on the server side of .NET where to tend to be deliberately insulated from such things.</p>
<p>Anyway, thought it was worth a post to commemorate this day – it took me a while to track down (would have been longer if it wasn’t for the debugger in Eclipse). Had I not spent the odd day here and there preparing for technical interviews it probably would have took me longer. You never know – one of these days I might actually write a real <a href="http://en.wikipedia.org/wiki/Binary_search">binary search algorithm</a> or use some of the other interview favourites… </p>
<a name="more"></a>
<span class="posted">Posted by Martin at February 24, 2006 12:21 PM
<br /></span>
</div>
<div id="comments" class="comments">
<div class="comments-content">
</div>
<form method="post" action="http://www.woodwardweb.com/mt/mt-comments.cgi" name="comments_form" onsubmit="if (this.bakecookie.checked) rememberMe(this)">
<input type="hidden" name="static" value="1" />
<input type="hidden" name="entry_id" value="191" />
<div class="comments-open" id="comments-open">
<h2 class="comments-head">Post a comment</h2>
<div class="comments-body">
<p class="comments-open-moderated">
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)
</p>
<div id="comments-open-data">
<div id="name-email">
<p>
<label for="comment-author">Name:</label>
<input id="comment-author" name="author" size="30" />
</p>
<p>
<label for="comment-email">Email Address:</label>
<input id="comment-email" name="email" size="30" />
</p>
</div>
<p>
<label for="comment-url">URL:</label>
<input id="comment-url" name="url" size="30" />
</p>
<p>
<label for="comment-bake-cookie"><input type="checkbox"
id="comment-bake-cookie" name="bakecookie" onclick="if (!this.checked) forgetMe(document.comments_form)" value="1" />
Remember personal info?</label>
</p>
</div>
<p id="comments-open-text">
<label for="comment-text">Comments: </label>
<textarea id="comment-text" name="text" rows="10" cols="30"></textarea>
</p>
<div id="comments-open-footer" class="comments-open-footer">
<input type="submit" accesskey="v" name="preview" id="comment-preview" value="Preview" />
<input type="submit" accesskey="s" name="post" id="comment-post" value="Post" />
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<div id="links">
<div class="sidetitle">
Sections
</div>
<div class="side">
<a href="http://www.woodwardweb.com/" TITLE="Martin Woodward">Home</a><br />
<a href="http://www.woodwardweb.com/Books/">Books (8)</a><br />
<a href="http://www.woodwardweb.com/Buddies/">Buddies (7)</a><br />
<a href="http://www.woodwardweb.com/Dotnet/">Dotnet (21)</a><br />
<a href="http://www.woodwardweb.com/Films/">Films (2)</a><br />
<a href="http://www.woodwardweb.com/Gadgets/">Gadgets (9)</a><br />
<a href="http://www.woodwardweb.com/Java/">Java (8)</a><br />
<a href="http://www.woodwardweb.com/Personal/">Personal (29)</a><br />
<a href="http://www.woodwardweb.com/Photos/">Photos (2)</a><br />
<a href="http://www.woodwardweb.com/Podcasting/">Podcasting (7)</a><br />
<a href="http://www.woodwardweb.com/Programming/">Programming (21)</a><br />
<a href="http://www.woodwardweb.com/Sandbox/">Sandbox (2)</a><br />
<a href="http://www.woodwardweb.com/Software/">Software (6)</a><br />
<a href="http://www.woodwardweb.com/Teamprise/">Teamprise (4)</a><br />
<a href="http://www.woodwardweb.com/Technology/">Technology (23)</a><br />
<a href="http://www.woodwardweb.com/Vsts/">Vsts (30)</a><br />
<a href="http://www.woodwardweb.com/Web Design/">Web Design (2)</a><br />
<a href="http://www.woodwardweb.com/Web Sites/">Web Sites (19)</a><br />
<a href="http://www.woodwardweb.com/Work/">Work (5)</a><br />
</div>
<div class="sidetitle">
Search
</div>
<div class="side">
<form method="get" action="http://www.woodwardweb.com/mt/mt-search.cgi">
<input type="hidden" name="IncludeBlogs" value="2" />
<label for="search" accesskey="4">Search this site:</label><br />
<input id="search" name="search" size="20" /><br />
<input type="submit" value="Search" />
</form>
</div>
<div class="syndicate">
<a href="http://feeds.feedburner.com/MartinWoodward">Syndicate this site (XML)</a>
<br/><br/>
<a href="http://clustrmaps.com/counter/maps.php?url=http://www.woodwardweb.com" id="clustrMapsLink"><img src="http://clustrmaps.com/counter/index2.php?url=http://www.woodwardweb.com" border=0 alt="Locations of visitors to this page"onError="this.onError=null; this.src='http://www.meetomatic.com/images/clustrmaps-back-soon.jpg'; document.getElementById('clustrMapsLink').href='http://clustrmaps.com/'">
</a>
</div>
<div class="syndicate">
<a href="http://creativecommons.org/licenses/by/1.0/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights" /></a><br />
This weblog is licensed under a <a href="http://creativecommons.org/licenses/by/1.0/">Creative Commons License</a>.
</div>
</div>
<br clear="all" />
</body>
</html>