/
Thedesignofthereagentcombinatorsisgiveninx3.Eachcom-binatorismotivate Thedesignofthereagentcombinatorsisgiveninx3.Eachcom-binatorismotivate

Thedesignofthereagentcombinatorsisgiveninx3.Eachcom-binatorismotivate - PDF document

lindy-dunigan
lindy-dunigan . @lindy-dunigan
Follow
358 views
Uploaded On 2016-04-20

Thedesignofthereagentcombinatorsisgiveninx3.Eachcom-binatorismotivate - PPT Presentation

classTreiberStackAf privatevalheadnewAtomicReferenceListANil defpushaAf valbacko newBacko whiletruef valcurheadget ifheadcascuracurreturn backo once g g deftryPopOpti ID: 285740

classTreiberStack[A]f privatevalhead=newAtomicReference[List[A]](Nil) defpush(a:A)f valbacko =newBacko while(true)f valcur=head.get() if(head.cas(cur a::cur))return backo .once() g g deftryPop():Opti

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "Thedesignofthereagentcombinatorsisgiven..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Related Contents


Next Show more