Parallel Programming with Microsoft NET Design Patterns for Decomposition and Coordination on Multicore Architectures Patterns Practices 1st Edition Colin Campbell pdf download
Parallel Programming with Microsoft NET Design Patterns for Decomposition and Coordination on Multicore Architectures Patterns Practices 1st Edition Colin Campbell pdf download
https://ebookultra.com/download/professional-asp-net-design-patterns-
scott-millett/
https://ebookultra.com/download/software-modeling-and-design-uml-use-
cases-patterns-and-software-architectures-1st-edition-hassan-gomaa/
https://ebookultra.com/download/foundations-of-object-oriented-
programming-using-net-2-0-patterns-1st-edition-christian-gross-auth/
Go Design Patterns 1st Edition Contreras
https://ebookultra.com/download/go-design-patterns-1st-edition-
contreras/
https://ebookultra.com/download/applied-xml-programming-for-microsoft-
net-1st-edition-dino-esposito/
https://ebookultra.com/download/programming-microsoft-sql-
server-2000-with-microsoft-visual-basic-net-1st-edition-edition-rick-
dobson/
https://ebookultra.com/download/design-patterns-1st-edition-
christopher-g-lasater/
https://ebookultra.com/download/design-patterns-explained-a-new-
perspective-on-object-oriented-design-2-ed-edition-shalloway/
Parallel Programming with Microsoft NET Design
Patterns for Decomposition and Coordination on
Multicore Architectures Patterns Practices 1st Edition
Colin Campbell Digital Instant Download
Author(s): Colin Campbell, Ralph Johnson, Ade Miller, Stephen Toub
ISBN(s): 9780735651593, 0735651590
Edition: 1
File Details: PDF, 3.74 MB
Year: 2010
Language: english
001
PARALLEL
PROGRAM M ING
WITH
M I C R O S O F T .N E T
®
Colin Campbell
Ralph Johnson
Ade Miller
Stephen Toub
Foreword by
Tony Hey
• • • • • •
• • • • • • • •
• • • • • • •
• • • • •
a guide to parallel programming
Parallel Programming
with Microsoft .NET ®
Colin Campbell
Ralph Johnson
Ade Miller
Stephen Toub
ISBN 9780735640603
Microsoft, MSDN, Visual Basic, Visual C#, Visual Studio, Windows, Windows
Live, Windows Server, and Windows Vista are trademarks of the Microsoft
group of companies.
Foreword xi
Tony Hey
Preface xiii
Who This Book Is For xiii
Why This Book Is Pertinent Now xiv
What You Need to Use the Code xiv
How to Use This Book xv
Introduction xvi
Parallelism with Control Dependencies Only xvi
Parallelism with Control and Data Dependencies xvi
Dynamic Task Parallelism and Pipelines xvi
Supporting Material xvii
What Is Not Covered xviii
Goals xviii
Acknowledgments xix
1 Introduction 1
The Importance of Potential Parallelism 2
Decomposition, Coordination,
and Scalable Sharing 3
Understanding Tasks 3
Coordinating Tasks 4
Scalable Sharing of Data 5
Design Approaches 6
Selecting the Right Pattern 7
A Word About Terminology 7
The Limits of Parallelism 8
A Few Tips 10
Exercises 11
For More Information 11
vi
2 Parallel Loops 13
The Basics 14
Parallel for Loops 14
Parallel for Each 15
Parallel Linq (PLINQ) 16
What to Expect 16
An Example 18
Sequential Credit Review Example 19
Credit Review Example Using
Parallel.For Each 19
Credit Review Example with PLINQ 20
Performance Comparison 21
Variations 21
Breaking Out of Loops Early 21
Parallel Break 21
Parallel Stop 23
External Loop Cancellation 24
Exception Handling 26
Special Handling of Small Loop Bodies 26
Controlling the Degree of Parallelism 28
Using Task-Local State in a Loop Body 29
Using a Custom Task Scheduler
For a Parallel Loop 31
Anti-Patterns 32
Step Size Other than One 32
Hidden Loop Body Dependencies 32
Small Loop Bodies with Few Iterations 32
Processor Oversubscription
And Undersubscription 33
Mixing the Parallel Class and PLINQ 33
Duplicates in the Input Enumeration 34
Design Notes 34
Adaptive Partitioning 34
Adaptive Concurrency 34
Support for Nested Loops and Server Applications 35
Related Patterns 35
Exercises 35
Further Reading 37
3 Parallel Tasks 39
The Basics 40
An Example 41
vii
Variations 43
Canceling a Task 43
Handling Exceptions 44
Ways to Observe an Unhandled Task Exception 45
Aggregate Exceptions 45
The Handle Method 46
The Flatten Method 47
Waiting for the First Task to Complete 48
Speculative Execution 49
Creating Tasks with Custom Scheduling 50
Anti-Patterns 51
Variables Captured by Closures 51
Disposing a Resource Needed by a Task 52
Avoid Thread Abort 53
Design Notes 53
Tasks and Threads 53
Task Life Cycle 53
Writing a Custom Task Scheduler 54
Unobserved Task Exceptions 55
Relationship Between Data Parallelism
and Task Parallelism 56
The Default Task Scheduler 56
The Thread Pool 57
Decentralized Scheduling Techniques 58
Work Stealing 59
Top-Level Tasks in the Global Queue 60
Subtasks in a Local Queue 60
Inlined Execution of Subtasks 60
Thread Injection 61
Bypassing the Thread Pool 63
Exercises 64
Further Reading 65
4 Parallel Aggregation 67
The Basics 68
An Example 69
Variations 73
Using Parallel Loops for Aggregation 73
Using A Range Partitioner for Aggregation 76
Using Plinq Aggregation with Range Selection 77
Design Notes 80
Related Patterns 82
Exercises 82
Further Reading 83
viii
5 Futures 85
The Basics 86
Futures 86
Continuation Tasks 88
Example: The Adatum Financial Dashboard 89
The Business Objects 91
The Analysis Engine 92
Loading External Data 95
Merging 95
Normalizing 96
Analysis and Model Creation 96
Processing Historical Data 96
Comparing Models 96
View And View Model 97
Variations 97
Canceling Futures and Continuation Tasks 97
Continue When “At Least One” Antecedent Completes 97
Using .Net Asynchronous Calls with Futures 97
Removing Bottlenecks 98
Modifying the Graph at Run Time 98
Design Notes 99
Decomposition into Futures
And Continuation Tasks 99
Functional Style 99
Related Patterns 100
Pipeline Pattern 100
Master/Worker Pattern 100
Dynamic Task Parallelism Pattern 100
Discrete Event Pattern 100
Exercises 101
Further Reading 101
7 Pipelines 113
The Basics 113
An Example 117
Sequential Image Processing 117
The Image Pipeline 119
Performance Characteristics 120
Variations 122
Canceling a Pipeline 122
Handling Pipeline Exceptions 124
Load Balancing Using Multiple Producers 126
Pipelines and Streams 129
Asynchronous Pipelines 129
Anti-Patterns 129
Thread Starvation 129
Infinite Blocking Collection Waits 130
Forgetting GetConsumingEnumerable() 130
Using Other Producer/Consumer
Collections 130
Design Notes 131
Related Patterns 131
Exercises 132
Further Reading 132
Appendices
a Adapting Object-Oriented Patterns 133
Structural Patterns 133
Façade 134
Example 134
Guidelines 134
Decorators 134
Example 135
Guidelines 136
Adapters 136
Example 137
Guidelines 138
Repositories And Parallel Data Access 138
Example 139
Guidelines 139
Singletons and Service Locators 139
Implementing a Singleton with the Lazy<T> Class 140
Notes 141
Guidelines 141
x
Model-View-ViewModel 142
Example 143
The Dashboard’s User Interface 144
Guidelines 147
Immutable Types 148
Example 149
Immutable Types as Value Types 150
Compound Values 152
Guidelines 152
Shared Data Classes 153
Guidelines 153
Iterators 154
Example 154
Lists and Enumerables 155
Further Reading 156
Structural Patterns 156
Singleton 156
Model-View-ViewModel 157
Immutable Types 158
Glossary 177
References 187
Other Online Sources 189
Index 191
Foreword
xi
xii for ewor d
Tony Hey
Corporate Vice President, Microsoft Research
Preface
xiii
xiv pr eface
A few days after the events just related, the following scene took
place at Mr. Howard's office in Golden Square.
It was about four in the afternoon, and the lawyer was seated in his
private room, at a table covered with papers, when a clerk entered
and announced that Sir Christopher Blunt and his lady had just
arrived.
"His lady with him—eh!" exclaimed the solicitor. "Well—show them in
at once."
And, accordingly, in a few minutes the worthy knight, with Charlotte
—or, we beg her pardon, Lady Blunt—hanging upon his arm, entered
the office.
The old gentleman was all smiles—but the quick eye of Mr. Howard
immediately perceived that they were to some extent forced and
feigned; and that beneath his jaunty aspect there was not altogether
the inward contentment, much less the lightsome glee, of a happy
bridegroom.
As for Lady Blunt—she was attired in the richest manner, and in all
the colours of the rainbow,—looking far too gaudy to be either
genteel or fashionable.
"My dear Sir Christopher, I am quite charmed to see you" exclaimed
Mr. Howard, rising to welcome his client and the bride. "Your
ladyship——"
"Yes—this is my loving and beloved Lady Blunt, Howard," said the
knight pompously: "a delightful creature, I can assure you—and who
has vowed to devote herself to my happiness."
"Come now, you great stupid!" said the lady; "finish your business
here, and let us see about the new carriage. Of all places in the
world, I hate a lawyer's office—ever since I was once summoned to
a Court of Conscience for seventeen shillings and ninepence-
halfpenny, and had to call on the thief of an attorney to get him to
take it by instalments of sixpence a-week. So, you see, I can't a-bear
the lawyers. No offence, sir," she added, turning towards Mr.
Howard; "but I always speak my mind; and I think it's best."
"My dear creature—my sweet love!" ejaculated Sir Christopher,
astounded at this outbreak of petulance on the part of his loving and
beloved wife.
"Pray do not distress yourself, my dear Sir Christopher," said the
lawyer. "We are accustomed to receive sharp rebukes from the ladies
sometimes," he added, with as courteous a smile as he could
possibly manage under the circumstances. "But pray be seated. Will
your ladyship take this chair?"—and he indicated the one nearest to
the fire.
Lady Blunt quitted her husband's arm, but made an imperious sign
for him to bring his chair close to hers; and he obeyed her with a
submission which left no doubt in the lawyer's mind as to the empire
already asserted by the bride.
"I am very glad you have called to-day, Sir Christopher," said the
lawyer; "for——"
"He couldn't very well come before, sir," interrupted Lady Blunt;
"because we only came back from the matrimonial trip last night."
Mr. Howard bowed, and was preparing to continue, when the knight
exclaimed, "My dear sir, what is all this to-do about the highwayman
who robbed me of the two thousand pounds? I thought I told you so
particularly that I would rather no steps should be taken in the
matter; and now—the moment I come back to town——"
"Instead of having all our time to ourselves, to gad about cozie
together," again interrupted Lady Blunt, "we are forced to come
bothering here at a lawyer's office."
"The ends of justice must be met, Lady Blunt," said Mr. Howard drily.
"In consequence of particular information which I received, I caused
this Thomas Rainford to be apprehended; and I appeal to Sir
Christopher himself—who has served the high office of Sheriff——"
"And once stood as a candidate for the aldermanic gown of
Portsoken, until I was obliged to cut those City people," added the
knight, drawing himself up.
"And why should you cut the City people?" demanded his wife. "For
my part, I'd sooner see the Lord Mayor's show than Punch and Judy
any day; and that's saying a great deal—for no one can be more
fonder of Punch and Judy than me."
"My dear Charlotte," exclaimed the knight, who now seemed to be
sitting on thorns, "you——"
"Charlotte at home—Lady Blunt in public, Sir Christopher—if you
please," interrupted the bride. "But pray let Mr. Howard get to the
end of this business."
"Well, my dear," exclaimed Sir Christopher, "if it annoys you, why
would you come? I assured you how unusual it was for ladies to
accompany their husbands to the office of their solicitors——"
"Oh! I dare say, Sir Christopher!" cried Charlotte. "You don't think
that I'm going to trust you out of my sight, do you now? I'm not
quite such a fool as you take me for. Why, even when we are
walking along the street together, I can see your wicked old eye
fixed on the gals——"
"Lady Blunt!" exclaimed the knight, becoming literally purple; "you—
you—you do me an injustice!"
"So much the better. I hope I am wrong—for both of our sakes,"
returned her ladyship. "Depend upon it——But, no matter now: let
Mr. Howard get on with his story."
"With your permission, madam, I shall be delighted to do so," said
the lawyer. "I was observing just now that having received particular
information, I caused this scoundrel Thomas Rainford, alias Captain
Sparks, to be apprehended; and on Monday morning, Sir
Christopher, you must attend before the magistrate to give your
evidence."
"But who authorised you to proceed in this affair, Mr. Howard?"
demanded the knight.
"What a strange question?" exclaimed the lawyer, evidently unwilling
to give a direct answer to it. "Only reflect for a moment, my dear Sir
Christopher. A robbery is committed—you, your nephew, and myself
are outwitted—laughed at—set at defiance,—and when an
opportunity comes in my way, I very naturally adopt the best
measures to punish the rogue."
"Quite proper too, sir," said Lady Blunt. "The idea of any one daring
to laugh at Sir Christopher! I'd scratch the villain's eyes out, if I had
him here. To laugh at Sir Christopher, indeed! Does he look like a
man who is meant to be laughed at?"
Lady Blunt could not have chosen a more unfortunate opportunity to
ask this question; for her husband at that moment presented so
ludicrous an appearance, between his attempts to look pleasant and
his fears lest he already seemed a henpecked old fool in the eyes of
his solicitor, that a man possessing less command over himself than
Mr. Howard would have laughed outright.
But with the utmost gravity in the world, the lawyer assured her
ladyship that nothing could be more preposterous than to laugh at a
gentleman of Sir Christopher Blunt's rank and importance; and he
also declared that in arresting Thomas Rainford, he had merely felt a
proper anxiety to punish one who had dared to ridicule the knight,
after having robbed him.
Lady Blunt was one of those capricious women who will laugh at
their husbands either as a matter of pastime or for the purpose of
manifesting their own independence and predominant sway, but who
cannot bear the idea of any other person taking a similar liberty. She
therefore expressed her joy that Mr. Howard had caused Rainford to
be apprehended, and declared, of her own accord, that Sir
Christopher should attend to give his evidence on the ensuing
Monday—"for she would go with him!"
"Well, my dear, since such is your pleasure," observed the knight,
"there is no more to be said upon the subject. I will go, my love; and
I think that when the magistrate hears my evidence, he will feel
convinced that I know pretty well how to aid the operation of the
laws, and that I have not been a Sheriff for nothing. Although
sprung from a humble origin——"
"Oh! pray don't begin that nonsense, Sir Christopher!" exclaimed the
lady; "or I shall faint. It is really quite sickening."
At that moment the door opened somewhat violently; and Mr. Frank
Curtis entered the room.
"Ah! Sir Christopher, my jolly old cock—how are you?" exclaimed that
highly respectable young gentleman, whose face was dreadfully
flushed with drinking, and who smelt so strong of cigars and rum-
punch that his presence instantly produced the most overpowering
effect.
"Mr. Curtis!" began the knight, rising from his chair, and drawing
himself up to his full height, "I——"
"Come—it's no use to be grumpy over it, uncle," interrupted Frank.
"Matrimony doesn't seem to agree with you very well, since you're
so soon put out of humour. Ah! my dear Char——my dear aunt, I
mean—beg your pardon—quite a mistake, you know;—but really you
look charming this afternoon."
"Get out with you, do!" cried Lady Blunt, who was somewhat
undecided how to treat Mr. Curtis.
"What! doesn't matrimony agree with you, either, my dear and much
respected aunt?" ejaculated Frank. "Why, I once knew a lady who
was in a galloping consumption—given up, in fact, and the
undertaker who lived over the way had already begun to make her
coffin—for he knew he should have the order for the funeral; when
all of a sudden a young chap fell in love with her, married her, and
took her to the south of France—where I've been, by the bye—and
brought her home in six months quite recovered, and in a fair way to
present him with a little one—a pledge of affection, as it's called."
"Mr. Curtis, I am surprised at you," exclaimed Sir Christopher, in a
pompous and commanding tone;—"to talk in this way before a lady
who has only recently passed through that trying ordeal."
"I'll be bound to say it wasn't so recent as you suppose, old buck,"
cried Frank, staggering against the lawyer's table.
"Sir, Lady Blunt has only been recently—very recently married, as
you are well aware," said the knight sternly. "And now let me tell
you, sir, that the detestable devices schemed by Miss Mordaunt and
you have recoiled upon yourselves——"
"Miss Mordaunt and me!" exclaimed Frank, now unfeignedly
surprised: "why—I never spoke to Miss Mordaunt in my life!"
"The monster!" half screamed Lady Blunt.
"The audacious liar!" vociferated the knight.
"Pretty names—very pretty," said Frank coolly; "but I'm rather tough,
thank God! and so they won't kill me this time. But I can assure you,
uncle, you've got hold of the wrong end of the stick when you say
that me and Miss Mordaunt planned any thing against you. As I once
observed to my friend the Count of St. Omers,—'My lord,' says I.
—'What?' asks the Marquis.—'My Lord Duke,' I repeated, in a firmer
tone——"
"Cease this nonsense, Mr. Curtis," interrupted Sir Christopher Blunt
sternly.
"Yes—and let us come along, my dear," said Lady Blunt, rising and
taking her husband's arm. "Your nev-vy does smell so horrid of rum
and cigars——"
"And very good things too," cried Frank; "ain't they, Howard? Me and
a party of young fashionables have been keeping it up a bit to-day at
my lodgings—on the strength of my intended marriage with Mrs.
Goldberry, the rich widow——"
"Your marriage, Frank!" exclaimed Sir Christopher. "What—how—
when——"
"Lord bless you, my dear uncle," said Mr. Curtis, swaying himself to
and fro in a very extraordinary manner, "you don't half know what
kind of a fellow I am. While you was away honeymooning and
nonsense——"
"Nonsense, indeed!" exclaimed Lady Blunt, indignantly. "Come, Sir
Christopher—it's no good staying here talking to Mr. Imperance."
"Going to Conduit Street—eh, aunt?" said Frank, with a drunken leer.
"But, by-the-bye, you regularly choused me out of five guineas, you
know, aunt—and something else, too——"
"Eh?—what?" said Sir Christopher, turning back. "Mr. Curtis, do you
dare to accuse Lady Blunt——"
"Of having made a very great fool of me, but a much bigger one of
you, old fellow," added Frank; and, snapping his fingers in his
uncle's face, he exclaimed, "I don't care a penny for you, Sir
Christopher! In a few days I shall marry Mrs. Goldberry—you are
very welcome to be as happy as you can with your Abigail there. So
remember, we're cuts in future, Sir Christopher—since you want to
come the bumptious over me."
The knight was about to reply; but his better-half drew him hastily
away from the lawyer's office, saying, "Come along, you great
stupid! What's the use of staying to dispute with that feller?"
The door closed behind the "happy couple;" and Mr. Frank Curtis,
throwing himself into the chair which Lady Blunt had just quitted,
burst out into a tremendous fit of laughter.
"You have gone too far, Frank—a great deal too far," said the lawyer,
shaking his head disapprovingly. "Sir Christopher has been a good
friend to you; and although he has committed an egregious error in
running off with that filly, still——"
"What do I care?" interrupted Frank. "I proposed to Mrs. Goldberry
yesterday—and she accepted me, after a good deal of simpering and
blushing, and so on. She's got five thousand a year, and lives in
splendid style in Baker Street. I made her believe that I wasn't quite
a beggar myself: but all's fair in love and war, as my friend the late
Prince of St. Omers used to say in his cups. But what about this
fellow Rainford? and how the deuce did he come to be arrested?"
"I received information of his residence," answered Howard coolly;
"and I gave him into custody accordingly."
"It's very odd," continued Frank, "but I met him last Sunday night;
and I don't mind telling you that we went into the middle of Hyde
Park and had an hour's wrestling together, to see who was the
better man. I threw him nineteen times running, and he threw me
seven; then I threw him three times—and he gave in. So we cried
'quits' for old scores, and I gave him my word and honour that
nothing would ever be done against him in respect to the little affair
of the two thousand pounds. You may therefore suppose that I'm
rather vexed——"
"The officers had already received instructions to apprehend him at
the time your alleged wrestling match came off," said the lawyer;
"and your evidence will be required next Monday morning."
"And I suppose the whole affair of the robbery will come out?"
observed Curtis interrogatively.
"Decidedly so. You must state the exact truth—if you can," added
Mr. Howard.
"If I can! Damn it, old fellow, that observation is not quite the thing
—coming from you; and if any body else had uttered it, egad! I'd
send him a hostile message to-morrow morning—as I did to my
most valued friend, the Marquis of Boulogne, when I was in Paris. I'll
just tell you how that was——"
"Not now Frank," interrupted the lawyer; "because I'm very busy. It's
getting on for post time—and I have not a minute to spare. But mind
and be punctual at the Borough police-office on Monday morning at
ten."
"Well—if I must, I must," said Curtis. "But, after all, I think it's rather
too bad—for this Sparks, or Rainford, or whatever his name is,
seems a good kind of fellow, after all."
"The law must take its course, Frank," observed the attorney in an
abrupt, dry manner.
Curtis accordingly took his leave, and returned to his lodgings,
where by dint of cold water applied outwardly and soda-water taken
inwardly, he endeavoured to sober himself sufficiently to pay a visit
to Mrs. Goldberry.
For it was literally true that there was such a lady—that she lived in
splendid style in Baker Street—that Frank had proposed to her—and
that he had been accepted;—but we have deemed it necessary to
give the reader these corroborative assurances on our part,
inasmuch as the whole tale would otherwise have appeared nothing
more nor less than one of the innumerable children of Mr. Curtis's
fertile imagination.
CHAPTER LI.
LORD ELLINGHAM IN THE DUNGEON.
Four weeks had elapsed since the arrest of Tom Rain and the
extraordinary adventure which had snatched the Earl of Ellingham
from the great world and plunged him into a narrow—noisome cell.
Yes—four weeks had the nobleman languished in the terrible
dungeon,—ignorant of where his prison-house was situated—why his
freedom was thus outraged—and who were his persecutors.
Every morning, at about eight o'clock, a small trap in the door of his
cell was opened, and food was passed through to him. A lamp had
been given him the day after he became an inmate of the place; and
oil was regularly supplied for the maintenance of the light. His food
was good, and wine accompanied it;—it was therefore evident that
no petty spite nor mean malignity had led to his captivity.
Indeed, the man who brought him his food assured him that no
harm would befall him,—that his imprisonment was necessary to suit
certain weighty and important interests, but that it would not be
protracted beyond a few weeks,—and that the only reason for
placing him in such a dungeon was because it was requisite to guard
against the possibility of an escape.
Often and often had Lord Ellingham endeavoured to render his
gaoler more communicative; but the man was not to be coaxed into
garrulity. Neither did he ever allow the nobleman to catch a glimpse
of his features, when he brought the food to the trap-door. He
invariably stood on one side, and spoke in a feigned tone when
replying to any question to which he did vouchsafe an answer.
The day after his strange and mysterious arrest, Arthur received
from this man the assurances above mentioned; and a considerable
weight was thereby removed from his mind. His imprisonment was
not to be eternal: a few weeks would see the term of the necessity
that had caused it. But still he grieved—nay, felt shocked to think of
the state of suspense in which those who cared for him would
remain during his long absence. This source of affliction he
mentioned to the man who attended upon him; and the reply was to
some extent satisfactory.
"I will supply you with writing materials, and you can address letters
to your friends, stating that sudden business has called you abroad—
to France, for instance; and that you may probably be absent six
weeks. Write in this manner—the excuse will at least allay any
serious fears that may be entertained concerning you; and those
letters shall be sent through the post to the persons to whom they
are addressed. But you must deliver them unsealed into my hands,
that I may satisfy myself as to the real nature of their contents."
Small as the satisfaction resulting from this proceeding could be to
Lord Ellingham, it was still far preferable to the maintenance of a
rigid silence in respect to his friends. He accordingly wrote a laconic
letter in the sense suggested by his gaoler; and addressed copies to
Lady Hatfield, Thomas Rainford, and Mr. de Medina. The next time
his gaoler visited him—or rather, came to the door of the dungeon,
the prisoner was informed that the three letters had been duly
forwarded through the twopenny post.
The reader will scarcely require to be informed of the mental anxiety
which the nobleman suffered during his incarceration. This was
naturally great—very great. He was also frequently plunged in the
most bewildering conjectures relative to the authors, the motives,
and the locality of his imprisonment. Nor less did he grieve—Oh!
deeply grieve, when he thought of the surprise—the alarm—and the
sorrow with which Lady Hatfield on one side and Rainford on the
other must view his mysterious absence. He had left the former with
the intention of seeing the latter, and she would naturally expect him
to return if for no other reason than to give her an account of their
interview; and he had quitted Rainford with the promise to perform
a certain task, and also having pledged himself to use his influence
and his wealth in his behalf.
The idea of the feelings that must be entertained by Rainford
relative to his absence, afflicted him more than any other. That
generous-hearted man had told him to keep his coronet and his
fortune to the prejudice of him—the elder brother, legitimately born;
and yet that interview in Horsemonger Lane Gaol seemed destined
to be the last which they were to have together! What would the
poor prisoner think when the Earl returned not, and when a letter
containing a cold and wretched excuse was put into his hands? Oh!
this was the maddening—maddening thought; and the Earl shrank
from it far more appalled than from the stern reality of his dungeon!
Because Rainford might be judged, and, alas! the law might take its
course—its fatal course—ere he, the Earl, could stretch out a hand
to save that generous-hearted half-brother.
But amidst all the bitter and bewildering reflections which tormented
him during his imprisonment of four weeks in that dungeon of
unknown neighbourhood, there was still a predominant idea—a
gleam of hope, which, apart from the assurance that his captivity
would soon have a term, cheered and animated him often.
For whither will not the rays of Hope penetrate? Even when Hope is
really gone, her work is often done by Despair; and the latter
feeling, in its extreme, is thus often akin to Hope herself.
The hope, then, that cheered and animated the Earl at times, was—
Escape!
Yes: he yearned to quit that dungeon, not so much for his own sake
—oh! not nearly so much, as for that of his half-brother, who was
involved in such peril, and who needed influence and interest to
save him! For the Earl well knew that the law in criminal cases is not
so tardy as in civil matters; and that to take away a man's life, all its
machinery is set into rapid motion—although to settle his claims to a
fortune or to give him justice against his neighbour, it is, heaven
knows! heart-breakingly slow and wearisome!
To send a man to the scaffold, takes but a few weeks at the Old
Bailey:—to decide the right of this man or that man to a particular
estate, or legacy, occupies years and years in the Court of Chancery.
Oh! how thirsty do our legislators appear to drink human blood. How
rapidly all technicalities and causes of delay are cleared away when
the capital offender stands before his judge! A day—perhaps an hour
is sufficient to decide the death of a human being; but half a century
may elapse ere the conflicting claims to an acre of land or a few
thousand pounds can be settled elsewhere.
And, strange—ah! and monstrous, too, is it, that the man who loses
a case in which he sues his neighbour for twenty pounds, may
appeal to another tribunal—have a new trial granted—and, losing
that also, perhaps obtain a third investigation of the point at issue,
and thus three verdicts in that beggarly business! But the man who
is doomed to die—who loses his case against the criminal prosecutor
—cannot appeal to another tribunal. No judges sit solemnly in banco
for him: one verdict is sufficient to take away a life. Away with him
to the scaffold! In this great commercial country, twenty pounds—
consisting of pieces of paper printed upon and stamped with
particular figures—are of more consequence than a being of flesh
and blood! What though this being of flesh and blood may have
others—a wife and children—dependent on him? No matter! Give
him not the chance of a new trial: let one judge and one jury suffice
to consign him to the hangman! There can be no appeal—no re-
investigation for his case, although it be a case of life and death: but
away with him to the scaffold!
What blood-thirsty and atrocious monsters have our law-givers
been: what cruel, inhuman beings are they still, to perpetuate so
abominable—so flagrant—so infamous a state of jurisprudence! For
how many have been hanged, though innocent,—their guiltlessness
transpiring when it is too late! But there is no court of appeal for the
man accused of a capital crime: he is a dog who has got a bad name
—and public opinion dooms him to be hanged, days and weeks
before the jury is sworn or the judge takes his seat to try him!
And wherefore is not this infamous state of the law, which allows
appeals to the case of money-claims, but none to the case of capital
accusations,—wherefore is not this state of the law altered? Because
our legislators are too much occupied with their own party
contentions and strifes;—because they are ever engaged in battling
for the Ministerial benches—the "loaves and fishes" of power:
because it seems to them of more consequence to decide whether
Sir Robert Peel or Lord John Russell shall be Prime Minister—whether
the Conservatives or the Whigs shall hold the reins of power. Or else,
gentle reader, the condition of Greece—or Spain—or Turkey,—or
even perhaps of Otaheite,—is a matter of far greater importance
than the lives of a few miserable wretches in the condemned cells of
criminal gaols!
But, in our estimation—and we have the misfortune to differ from
the legislators of the country—the life of one of those wretches is of
far greater consequence than the state of tyrant-ridden Greece—the
Spanish marriages—the quarrels of the Sultan and his Pachas—or
the miserable squabbles of hypocritical English missionaries and a
French governor in Tahiti. Yes—in our estimation, the life of one man
outweighs all such considerations; and we would rather see half a
session of Parliament devoted to the discussion of the grand
question of the Punishment of Death, than one single day of that
session given to all the foreign affairs that ever agitated in a
Minister's brain.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com